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

Function getIsolationScope

packages/core/src/currentScopes.ts:46–50  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

44 * The isolation scope is active for the current execution context.
45 */
46export function getIsolationScope(): Scope {
47 const carrier = getMainCarrier();
48 const acs = getAsyncContextStrategy(carrier);
49 return acs.getIsolationScope();
50}
51
52/**
53 * Get the global scope.

Callers 15

instrumentOnRequestFunction · 0.90
withElysiaFunction · 0.90
_startChunkProfilingMethod · 0.90
enhanceHttpServerSpanFunction · 0.90
getCurrentIsolationScopeFunction · 0.90
scope.test.tsFile · 0.90
envelope.test.tsFile · 0.90
client.test.tsFile · 0.90

Calls 3

getMainCarrierFunction · 0.90
getAsyncContextStrategyFunction · 0.90
getIsolationScopeMethod · 0.80

Tested by 5

resetGlobalsFunction · 0.40
resetGlobalsFunction · 0.40
resetGlobalsFunction · 0.40
resetGlobalsFunction · 0.40
resetGlobalsFunction · 0.40