Skip to content

Commit

Permalink
fix(node): Use unique variable for ANR context transfer (v7) (#11162)
Browse files Browse the repository at this point in the history
Backport of #11161
  • Loading branch information
timfish committed Mar 18, 2024
1 parent 4059bbd commit aef8c98
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/node/src/integrations/anr/worker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ if (options.captureStackTrace) {
{
// Grab the trace context from the current scope
expression:
'const ctx = __SENTRY__.hub.getScope().getPropagationContext(); ctx.traceId + "-" + ctx.spanId + "-" + ctx.parentSpanId',
'var __sentry_ctx = __SENTRY__.hub.getScope().getPropagationContext(); __sentry_ctx.traceId + "-" + __sentry_ctx.spanId + "-" + __sentry_ctx.parentSpanId',
// Don't re-trigger the debugger if this causes an error
silent: true,
},
Expand Down

0 comments on commit aef8c98

Please sign in to comment.