MCPcopy Index your code
hub / github.com/getsentry/sentry-javascript / suppressTracing

Function suppressTracing

packages/cloudflare/src/async.ts:73–78  ·  view source on GitHub ↗
(callback: () => T)

Source from the content-addressed store, hash-verified

71
72 // In contrast to the browser, we can rely on async context isolation here
73 function suppressTracing<T>(callback: () => T): T {
74 return withScope(scope => {
75 scope.setSDKProcessingMetadata({ __SENTRY_SUPPRESS_TRACING__: true });
76 return callback();
77 });
78 }
79
80 setAsyncContextStrategy({
81 suppressTracing,

Callers

nothing calls this directly

Calls 3

withScopeFunction · 0.70
callbackFunction · 0.50

Tested by

no test coverage detected