We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c3b9a0c commit 6370650Copy full SHA for 6370650
packages/node/test/helpers/mockSdkInit.ts
@@ -55,8 +55,7 @@ export function getSpanProcessor(): SentrySpanProcessor | undefined {
55
}
56
57
// Access the span processors from the provider via _activeSpanProcessor
58
- // Casted as any because _activeSpanProcessor is marked as readonly
59
- const multiSpanProcessor = (provider as any)._activeSpanProcessor as
+ const multiSpanProcessor = provider?.['_activeSpanProcessor'] as
60
| (SpanProcessor & { _spanProcessors?: SpanProcessor[] })
61
| undefined;
62
0 commit comments