File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
packages/core/src/tracing Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 1- import type { Options , SamplingContext } from '../types-hoist' ;
1+ import type { Options , RequestEventData , SamplingContext } from '../types-hoist' ;
22
33import { getIsolationScope } from '../currentScopes' ;
44import { DEBUG_BUILD } from '../debug-build' ;
@@ -21,7 +21,9 @@ export function sampleSpan(
2121 return [ false ] ;
2222 }
2323
24- const normalizedRequest = getIsolationScope ( ) . getScopeData ( ) . sdkProcessingMetadata . normalizedRequest ;
24+ // Casting this from unknown, as the type of `sdkProcessingMetadata` is only changed in v9 and `normalizedRequest` is set in SentryHttpInstrumentation
25+ const normalizedRequest = getIsolationScope ( ) . getScopeData ( ) . sdkProcessingMetadata
26+ . normalizedRequest as RequestEventData ;
2527
2628 const enhancedSamplingContext = {
2729 ...samplingContext ,
You can’t perform that action at this time.
0 commit comments