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

Function withSetIsolationScope

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

Source from the content-addressed store, hash-verified

71 }
72
73 function withSetIsolationScope<T>(isolationScope: Scope, callback: (isolationScope: Scope) => T): T {
74 const scope = getScopes().scope;
75 return asyncStorage.run({ scope, isolationScope }, () => {
76 return callback(isolationScope);
77 });
78 }
79
80 // In contrast to the browser, we can rely on async context isolation here
81 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