@@ -5,7 +5,7 @@ import { VERSION } from '@opentelemetry/core';
5
5
import type { InstrumentationConfig } from '@opentelemetry/instrumentation' ;
6
6
import { InstrumentationBase , InstrumentationNodeModuleDefinition } from '@opentelemetry/instrumentation' ;
7
7
import { getRequestInfo } from '@opentelemetry/instrumentation-http' ;
8
- import { addBreadcrumb , getClient , getIsolationScope , setNormalizedRequest , withIsolationScope } from '@sentry/core' ;
8
+ import { addBreadcrumb , getClient , getIsolationScope , withIsolationScope } from '@sentry/core' ;
9
9
import type { PolymorphicRequest , Request , SanitizedRequestData } from '@sentry/types' ;
10
10
import {
11
11
getBreadcrumbLogLevelFromHttpStatusCode ,
@@ -153,9 +153,7 @@ export class SentryHttpInstrumentation extends InstrumentationBase<SentryHttpIns
153
153
patchRequestToCaptureBody ( request , normalizedRequest ) ;
154
154
155
155
// Update the isolation scope, isolate this request
156
- // TODO(v9): Stop setting `request`, we only rely on normalizedRequest anymore
157
- isolationScope . setSDKProcessingMetadata ( { request } ) ;
158
- setNormalizedRequest ( normalizedRequest , isolationScope ) ;
156
+ isolationScope . setSDKProcessingMetadata ( { request, normalizedRequest } ) ;
159
157
160
158
const client = getClient < NodeClient > ( ) ;
161
159
if ( client && client . getOptions ( ) . autoSessionTracking ) {
0 commit comments