Skip to content

Commit 7496f0a

Browse files
authored
feat(nextjs): Add mechanism to withSentry-caught errors (#4046)
1 parent faf6717 commit 7496f0a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/nextjs/src/utils/withSentry.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ export const withSentry = (handler: NextApiHandler): WrappedNextApiHandler => {
7979
if (currentScope) {
8080
currentScope.addEventProcessor(event => {
8181
addExceptionMechanism(event, {
82+
mechanism: 'withSentry',
8283
handled: false,
8384
});
8485
return event;

0 commit comments

Comments
 (0)