Skip to content

Commit f74a5e0

Browse files
committed
stop using event processor in _error helper
1 parent a1ffb64 commit f74a5e0

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

packages/nextjs/src/utils/_error.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { captureException, withScope } from '@sentry/core';
22
import { getCurrentHub } from '@sentry/hub';
3-
import { addExceptionMechanism, addRequestDataToEvent } from '@sentry/utils';
3+
import { addExceptionMechanism } from '@sentry/utils';
44
import { NextPageContext } from 'next';
55

66
type ContextOrProps = {
@@ -55,7 +55,6 @@ export async function captureUnderscoreErrorException(contextOrProps: ContextOrP
5555
});
5656

5757
if (req) {
58-
scope.addEventProcessor(event => addRequestDataToEvent(event, req));
5958
scope.setSDKProcessingMetadata({ request: req });
6059
}
6160

0 commit comments

Comments
 (0)