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

Function getScopes

packages/server-utils/test/tracing-channel.test.ts:60–67  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

58 const asyncStorage = new AsyncLocalStorage<TestStore>();
59
60 function getScopes(): TestStore {
61 return (
62 asyncStorage.getStore() || {
63 scope: getDefaultCurrentScope(),
64 isolationScope: getDefaultIsolationScope(),
65 }
66 );
67 }
68
69 setAsyncContextStrategy({
70 withScope: callback => {

Callers 1

Calls 3

getDefaultCurrentScopeFunction · 0.90
getDefaultIsolationScopeFunction · 0.90
getStoreMethod · 0.65

Tested by

no test coverage detected