in packages/rum-core/src/performance-monitoring/performance-monitoring.js [338:374]
filterTransaction(tr) {
const duration = tr.duration()
if (!duration) {
if (__DEV__) {
let message = `transaction(${tr.id}, ${tr.name}) was discarded! `
if (duration === 0) {
message += `Transaction duration is 0`
} else {
message += `Transaction wasn't ended`
}
this._logginService.debug(message)
}
return false
}
if (tr.isManaged()) {
if (duration > TRANSACTION_DURATION_THRESHOLD) {
if (__DEV__) {
this._logginService.debug(
`transaction(${tr.id}, ${tr.name}) was discarded! Transaction duration (${duration}) is greater than managed transaction threshold (${TRANSACTION_DURATION_THRESHOLD})`
)
}
return false
}
if (tr.sampled && tr.spans.length === 0) {
if (__DEV__) {
this._logginService.debug(
`transaction(${tr.id}, ${tr.name}) was discarded! Transaction does not have any spans`
)
}
return false
}
}
return true
}