Skip to content

Commit 83698eb

Browse files
committed
stop using event processor in withSentry
1 parent 2a46a10 commit 83698eb

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

packages/nextjs/src/utils/withSentry.ts

Lines changed: 1 addition & 4 deletions
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 {
@@ -41,9 +41,6 @@ export const withSentry = (origHandler: NextApiHandler): WrappedNextApiHandler =
4141
const currentScope = getCurrentHub().getScope();
4242

4343
if (currentScope) {
44-
currentScope.addEventProcessor(event =>
45-
event.type !== 'transaction' ? addRequestDataToEvent(event, req) : event,
46-
);
4744
currentScope.setSDKProcessingMetadata({ request: req });
4845

4946
if (hasTracingEnabled()) {

0 commit comments

Comments
 (0)