Skip to content

Commit e8685e3

Browse files
committed
stop using event processor in withSentry
1 parent 735b9c4 commit e8685e3

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

packages/nextjs/src/utils/withSentry.ts

+1-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { addRequestDataToEvent, captureException, flush, getCurrentHub, startTransaction } from '@sentry/node';
1+
import { captureException, flush, getCurrentHub, startTransaction } from '@sentry/node';
22
import { extractTraceparentData, hasTracingEnabled } from '@sentry/tracing';
33
import { Transaction } from '@sentry/types';
44
import {
@@ -56,9 +56,6 @@ export const withSentry = (origHandler: NextApiHandler): WrappedNextApiHandler =
5656
const currentScope = getCurrentHub().getScope();
5757

5858
if (currentScope) {
59-
currentScope.addEventProcessor(event =>
60-
event.type !== 'transaction' ? addRequestDataToEvent(event, req) : event,
61-
);
6259
currentScope.setSDKProcessingMetadata({ request: req });
6360

6461
if (hasTracingEnabled()) {

0 commit comments

Comments
 (0)