File tree 1 file changed +3
-3
lines changed
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' ;
2
2
import { getIsolationScope } from '../currentScopes' ;
3
3
4
4
/**
@@ -35,13 +35,13 @@ export function mergeSdkProcessingMetadata(
35
35
* By default, this will put this data on the isolation scope,
36
36
* but you can also pass a different scope to set the data on.
37
37
*/
38
- export function setRequestEventData ( normalizedRequest : Request , scope = getIsolationScope ( ) ) : void {
38
+ export function setRequestEventData ( normalizedRequest : RequestEventData , scope = getIsolationScope ( ) ) : void {
39
39
const normalizedRequestBefore = scope . getScopeData ( ) . sdkProcessingMetadata [ 'normalizedRequest' ] ;
40
40
41
41
const newNormalizedRequest = {
42
42
...( normalizedRequestBefore || { } ) ,
43
43
...normalizedRequest ,
44
- } satisfies Request ;
44
+ } satisfies RequestEventData ;
45
45
46
46
scope . setSDKProcessingMetadata ( { normalizedRequest : newNormalizedRequest } ) ;
47
47
}
You can’t perform that action at this time.
0 commit comments