We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 403893c commit e4dab91Copy full SHA for e4dab91
packages/node-core/src/integrations/onunhandledrejection.ts
@@ -98,7 +98,8 @@ export function makeUnhandledPromiseHandler(
98
99
const level: SeverityLevel = options.mode === 'strict' ? 'fatal' : 'error';
100
101
- // If upstream code stored an active span on the error, use it for linking.
+ // this can be set in places where we cannot reliably get access to the active span/error
102
+ // when the error bubbles up to this handler, we can use this to set the active span
103
const activeSpanForError =
104
reason && typeof reason === 'object' ? (reason as { _sentry_active_span?: Span })._sentry_active_span : undefined;
105
0 commit comments