MCPcopy Create free account
hub / github.com/getsentry/sentry-javascript / isTracingSuppressed

Function isTracingSuppressed

packages/core/src/tracing/trace.ts:295–303  ·  view source on GitHub ↗
(scope = getCurrentScope())

Source from the content-addressed store, hash-verified

293
294/** Check if tracing is suppressed. */
295export function isTracingSuppressed(scope = getCurrentScope()): boolean {
296 const acs = getAcs();
297
298 if (acs.isTracingSuppressed) {
299 return acs.isTracingSuppressed(scope);
300 }
301
302 return scope.getScopeData().sdkProcessingMetadata[SUPPRESS_TRACING_KEY] === true;
303}
304
305/**
306 * Starts a new trace for the duration of the provided callback. Spans started within the

Callers 11

trace.test.tsFile · 0.90
trace.test.tsFile · 0.90
_startSpanFunction · 0.90
startInactiveSpanFunction · 0.90
injectMethod · 0.90
createChildOrRootSpanFunction · 0.70
_startRootSpanFunction · 0.70
_startChildSpanFunction · 0.70

Calls 3

getCurrentScopeFunction · 0.90
getAcsFunction · 0.85
getScopeDataMethod · 0.80

Tested by

no test coverage detected