File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -28,6 +28,8 @@ import { makeFetchTransport } from './transports/fetch';
2828import { normalizeStringifyValue } from './normalizeStringifyValue' ;
2929import { checkAndWarnIfIsEmbeddedBrowserExtension } from './utils/detectBrowserExtension' ;
3030
31+ declare const __SENTRY_TRACING__ : boolean ;
32+
3133/** Get the default integrations for the browser SDK. */
3234export function getDefaultIntegrations ( _options : Options ) : Integration [ ] {
3335 /**
@@ -120,6 +122,7 @@ export function init(options: BrowserOptions = {}): Client | undefined {
120122 } ) ;
121123
122124 if (
125+ ( typeof __SENTRY_TRACING__ === 'undefined' || __SENTRY_TRACING__ ) &&
123126 options . traceLifecycle !== 'static' &&
124127 ! integrations . some ( integration => integration . name === SPAN_STREAMING_INTEGRATION_NAME )
125128 ) {
Original file line number Diff line number Diff line change @@ -28,6 +28,8 @@ export interface ServerRuntimeClientOptions extends ClientOptions<BaseTransportO
2828 serverName ?: string ;
2929}
3030
31+ declare const __SENTRY_TRACING__ : boolean ;
32+
3133/**
3234 * The Sentry Server Runtime Client SDK.
3335 */
@@ -47,6 +49,7 @@ export class ServerRuntimeClient<
4749 // is required to flush spans. We add it here so the individual server SDKs don't have to.
4850 // A user-provided `spanStreamingIntegration` always takes precedence over the one we add.
4951 if (
52+ ( typeof __SENTRY_TRACING__ === 'undefined' || __SENTRY_TRACING__ ) &&
5053 options . traceLifecycle !== 'static' &&
5154 ! options . integrations . some ( i => i . name === SPAN_STREAMING_INTEGRATION_NAME )
5255 ) {
You can’t perform that action at this time.
0 commit comments