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

Function getCurrentScope

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

Source from the content-addressed store, hash-verified

34 * Get the currently active scope.
35 */
36export function getCurrentScope(): Scope {
37 const carrier = getMainCarrier();
38 const acs = getAsyncContextStrategy(carrier);
39 return acs.getCurrentScope();
40}
41
42/**
43 * Get the currently active isolation scope.

Calls 2

getMainCarrierFunction · 0.90
getAsyncContextStrategyFunction · 0.90

Tested by 2

setupClientFunction · 0.72
nestedFunction · 0.72