Skip to content

Commit

Permalink
naming change
Browse files Browse the repository at this point in the history
  • Loading branch information
AbhiPrasad committed Jul 27, 2023
1 parent b44cdd9 commit 6e3a02f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/core/src/tracing/idletransaction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -161,8 +161,8 @@ export class IdleTransaction extends Transaction {
const spanStartedBeforeTransactionFinish = span.startTimestamp < endTimestamp;

// Add a delta with idle timeout so that we prevent false positives
const timeoutWithDelta = (this._finalTimeout + this._idleTimeout) / 1000;
const spanEndedBeforeFinalTimeout = span.endTimestamp - this.startTimestamp < timeoutWithDelta;
const timeoutWithMarginOfError = (this._finalTimeout + this._idleTimeout) / 1000;
const spanEndedBeforeFinalTimeout = span.endTimestamp - this.startTimestamp < timeoutWithMarginOfError;

if (__DEBUG_BUILD__) {
const stringifiedSpan = JSON.stringify(span, undefined, 2);
Expand Down

0 comments on commit 6e3a02f

Please sign in to comment.