Skip to content

Commit 08b86e2

Browse files
authored
fix(node): Use unique variable for ANR context transfer (#11161)
Closes #11147
1 parent 801d2b8 commit 08b86e2

File tree

1 file changed

+1
-1
lines changed
  • packages/node-experimental/src/integrations/anr

1 file changed

+1
-1
lines changed

packages/node-experimental/src/integrations/anr/worker.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ if (options.captureStackTrace) {
172172
{
173173
// Grab the trace context from the current scope
174174
expression:
175-
'const ctx = __SENTRY__.acs?.getCurrentScope().getPropagationContext() || {}; ctx.traceId + "-" + ctx.spanId + "-" + ctx.parentSpanId',
175+
'var __sentry_ctx = __SENTRY__.acs?.getCurrentScope().getPropagationContext() || {}; __sentry_ctx.traceId + "-" + __sentry_ctx.spanId + "-" + __sentry_ctx.parentSpanId',
176176
// Don't re-trigger the debugger if this causes an error
177177
silent: true,
178178
},

0 commit comments

Comments
 (0)