File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 1- import type { Request , ScopeData } from '@sentry/types' ;
1+ import type { RequestEventData , ScopeData } from '@sentry/types' ;
22import { getIsolationScope } from '../currentScopes' ;
33
44/**
@@ -35,13 +35,13 @@ export function mergeSdkProcessingMetadata(
3535 * By default, this will put this data on the isolation scope,
3636 * but you can also pass a different scope to set the data on.
3737 */
38- export function setRequestEventData ( normalizedRequest : Request , scope = getIsolationScope ( ) ) : void {
38+ export function setRequestEventData ( normalizedRequest : RequestEventData , scope = getIsolationScope ( ) ) : void {
3939 const normalizedRequestBefore = scope . getScopeData ( ) . sdkProcessingMetadata [ 'normalizedRequest' ] ;
4040
4141 const newNormalizedRequest = {
4242 ...( normalizedRequestBefore || { } ) ,
4343 ...normalizedRequest ,
44- } satisfies Request ;
44+ } satisfies RequestEventData ;
4545
4646 scope . setSDKProcessingMetadata ( { normalizedRequest : newNormalizedRequest } ) ;
4747}
You can’t perform that action at this time.
0 commit comments