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 cf8c072 commit 0fd09a8Copy full SHA for 0fd09a8
packages/node/src/handlers.ts
@@ -10,6 +10,7 @@ import {
10
import type { Span } from '@sentry/types';
11
import type { AddRequestDataToEventOptions } from '@sentry/utils';
12
import {
13
+ addExceptionMechanism,
14
addRequestDataToTransaction,
15
baggageHeaderToDynamicSamplingContext,
16
dropUndefinedKeys,
@@ -304,6 +305,11 @@ export function errorHandler(options?: {
304
305
}
306
307
308
+ _scope.addEventProcessor(event => {
309
+ addExceptionMechanism(event, { type: 'middleware', handled: false });
310
+ return event;
311
+ });
312
+
313
const eventId = captureException(error);
314
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
315
(res as any).sentry = eventId;
0 commit comments