Skip to content

Commit e4dab91

Browse files
committed
one more comment to revert
1 parent 403893c commit e4dab91

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/node-core/src/integrations/onunhandledrejection.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,8 @@ export function makeUnhandledPromiseHandler(
9898

9999
const level: SeverityLevel = options.mode === 'strict' ? 'fatal' : 'error';
100100

101-
// If upstream code stored an active span on the error, use it for linking.
101+
// 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
102103
const activeSpanForError =
103104
reason && typeof reason === 'object' ? (reason as { _sentry_active_span?: Span })._sentry_active_span : undefined;
104105

0 commit comments

Comments
 (0)