@@ -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 , setRequestEventData , withIsolationScope } from '@sentry/core' ;
9
9
import type { PolymorphicRequest , RequestEventData , SanitizedRequestData , Scope } from '@sentry/types' ;
10
10
import {
11
11
getBreadcrumbLogLevelFromHttpStatusCode ,
@@ -155,7 +155,7 @@ export class SentryHttpInstrumentation extends InstrumentationBase<SentryHttpIns
155
155
// Update the isolation scope, isolate this request
156
156
// TODO(v9): Stop setting `request`, we only rely on normalizedRequest anymore
157
157
isolationScope . setSDKProcessingMetadata ( { request } ) ;
158
- setNormalizedRequest ( normalizedRequest , isolationScope ) ;
158
+ setRequestEventData ( normalizedRequest , isolationScope ) ;
159
159
160
160
const client = getClient < NodeClient > ( ) ;
161
161
if ( client && client . getOptions ( ) . autoSessionTracking ) {
@@ -399,7 +399,7 @@ function patchRequestToCaptureBody(req: IncomingMessage, isolationScope: Scope):
399
399
const body = Buffer . concat ( chunks ) . toString ( 'utf-8' ) ;
400
400
401
401
if ( body ) {
402
- setNormalizedRequest ( { data : body } , isolationScope ) ;
402
+ setRequestEventData ( { data : body } , isolationScope ) ;
403
403
}
404
404
} catch {
405
405
// ignore errors here
0 commit comments