Skip to content

Commit 80745fc

Browse files
author
Luca Forstner
committed
Don't drop for edge?
1 parent e13abef commit 80745fc

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

packages/nextjs/src/common/utils/edgeWrapperUtils.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import { vercelWaitUntil, winterCGRequestToRequestData } from '@sentry/utils';
1313

1414
import type { EdgeRouteHandler } from '../../edge/types';
1515
import { flushSafelyWithTimeout } from './responseEnd';
16-
import { commonObjectToIsolationScope, dropNextjsRootContext, escapeNextjsTracing } from './tracingUtils';
16+
import { commonObjectToIsolationScope, escapeNextjsTracing } from './tracingUtils';
1717

1818
/**
1919
* Wraps a function on the edge runtime with error and performance monitoring.
@@ -23,7 +23,6 @@ export function withEdgeWrapping<H extends EdgeRouteHandler>(
2323
options: { spanDescription: string; spanOp: string; mechanismFunctionName: string },
2424
): (...params: Parameters<H>) => Promise<ReturnType<H>> {
2525
return async function (this: unknown, ...args) {
26-
dropNextjsRootContext();
2726
return escapeNextjsTracing(() => {
2827
const req: unknown = args[0];
2928
return withIsolationScope(commonObjectToIsolationScope(req), isolationScope => {

0 commit comments

Comments
 (0)