@@ -5,7 +5,7 @@ import { VERSION } from '@opentelemetry/core';
55import type { InstrumentationConfig } from '@opentelemetry/instrumentation' ;
66import { InstrumentationBase , InstrumentationNodeModuleDefinition } from '@opentelemetry/instrumentation' ;
77import { getRequestInfo } from '@opentelemetry/instrumentation-http' ;
8- import { addBreadcrumb , getClient , getIsolationScope , setNormalizedRequest , withIsolationScope } from '@sentry/core' ;
8+ import { addBreadcrumb , getClient , getIsolationScope , setRequestEventData , withIsolationScope } from '@sentry/core' ;
99import type { PolymorphicRequest , RequestEventData , SanitizedRequestData , Scope } from '@sentry/types' ;
1010import {
1111 getBreadcrumbLogLevelFromHttpStatusCode ,
@@ -155,7 +155,7 @@ export class SentryHttpInstrumentation extends InstrumentationBase<SentryHttpIns
155155 // Update the isolation scope, isolate this request
156156 // TODO(v9): Stop setting `request`, we only rely on normalizedRequest anymore
157157 isolationScope . setSDKProcessingMetadata ( { request } ) ;
158- setNormalizedRequest ( normalizedRequest , isolationScope ) ;
158+ setRequestEventData ( normalizedRequest , isolationScope ) ;
159159
160160 const client = getClient < NodeClient > ( ) ;
161161 if ( client && client . getOptions ( ) . autoSessionTracking ) {
@@ -399,7 +399,7 @@ function patchRequestToCaptureBody(req: IncomingMessage, isolationScope: Scope):
399399 const body = Buffer . concat ( chunks ) . toString ( 'utf-8' ) ;
400400
401401 if ( body ) {
402- setNormalizedRequest ( { data : body } , isolationScope ) ;
402+ setRequestEventData ( { data : body } , isolationScope ) ;
403403 }
404404 } catch {
405405 // ignore errors here
0 commit comments