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 d5e9165 commit d341330Copy full SHA for d341330
packages/nextjs/src/utils/withSentry.ts
@@ -79,8 +79,12 @@ export const withSentry = (origHandler: NextApiHandler): WrappedNextApiHandler =
79
if (currentScope) {
80
currentScope.addEventProcessor(event => {
81
addExceptionMechanism(event, {
82
- mechanism: 'withSentry',
83
- handled: false,
+ type: 'instrument',
+ handled: true,
84
+ data: {
85
+ wrapped_handler: origHandler.name,
86
+ function: 'withSentry',
87
+ },
88
});
89
return event;
90
0 commit comments