File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
packages/core/src/tracing Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -160,11 +160,9 @@ export class IdleTransaction extends Transaction {
160
160
161
161
const spanStartedBeforeTransactionFinish = span . startTimestamp < endTimestamp ;
162
162
163
+ // Add a delta with idle timeout so that we prevent false positives
163
164
const timeoutWithDelta = ( this . _finalTimeout + this . _idleTimeout ) / 1000 ;
164
-
165
- const transactionDidNotExceedTimeout = endTimestamp - this . startTimestamp < timeoutWithDelta ;
166
- const spanDidNotExceedTimeout = span . endTimestamp - span . startTimestamp < timeoutWithDelta ;
167
- const spanEndedBeforeFinalTimeout = transactionDidNotExceedTimeout && spanDidNotExceedTimeout ;
165
+ const spanEndedBeforeFinalTimeout = span . endTimestamp - this . startTimestamp < timeoutWithDelta ;
168
166
169
167
if ( __DEBUG_BUILD__ ) {
170
168
const stringifiedSpan = JSON . stringify ( span , undefined , 2 ) ;
You can’t perform that action at this time.
0 commit comments