Skip to content

Commit 2e6a8b7

Browse files
fix(tracer): ensure callbacks are always invoked when processing ended spans
1 parent 8bd3bdd commit 2e6a8b7

File tree

1 file changed

+1
-1
lines changed
  • bugsnag-android-performance-impl/src/main/kotlin/com/bugsnag/android/performance/internal/processing

1 file changed

+1
-1
lines changed

bugsnag-android-performance-impl/src/main/kotlin/com/bugsnag/android/performance/internal/processing/Tracer.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public class Tracer(
5555
override fun onEnd(span: Span) {
5656
if (span !is SpanImpl) return
5757

58-
if (sampler.shouldKeepSpan(span) && callbacksKeepSpan(span)) {
58+
if (callbacksKeepSpan(span) && sampler.shouldKeepSpan(span)) {
5959
span.isSealed = true
6060
val batchSize = addToBatch(span)
6161
if (batchSize >= InternalDebug.spanBatchSizeSendTriggerPoint) {

0 commit comments

Comments
 (0)