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 aa60eea commit 04c2b04Copy full SHA for 04c2b04
packages/node/src/handlers.ts
@@ -407,6 +407,11 @@ export function errorHandler(options?: {
407
408
if (shouldHandleError(error)) {
409
withScope(_scope => {
410
+ // For some reason we need to set the transaction on the scope again
411
+ const transaction = (res as any).__sentry_transaction as Span;
412
+ if (transaction && _scope.getSpan() === undefined) {
413
+ _scope.setSpan(transaction);
414
+ }
415
const eventId = captureException(error);
416
(res as any).sentry = eventId;
417
next(error);
0 commit comments