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

Function withSetIsolationScope

packages/cloudflare/src/async.ts:65–70  ·  view source on GitHub ↗
(isolationScope: Scope, callback: (isolationScope: Scope) => T)

Source from the content-addressed store, hash-verified

63 }
64
65 function withSetIsolationScope<T>(isolationScope: Scope, callback: (isolationScope: Scope) => T): T {
66 const scope = getScopes().scope;
67 return asyncStorage.run({ scope, isolationScope }, () => {
68 return callback(isolationScope);
69 });
70 }
71
72 // In contrast to the browser, we can rely on async context isolation here
73 function suppressTracing<T>(callback: () => T): T {

Callers

nothing calls this directly

Calls 3

getScopesFunction · 0.70
runMethod · 0.65
callbackFunction · 0.50

Tested by

no test coverage detected