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

Function resetGlobals

packages/node-core/test/helpers/mockSdkInit.ts:42–47  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

40}
41
42export function resetGlobals(): void {
43 getCurrentScope().clear();
44 getCurrentScope().setClient(undefined);
45 getIsolationScope().clear();
46 getGlobalScope().clear();
47}
48
49export function setupOtel(client: NodeClient): BasicTracerProvider | undefined {
50 if (!client) {

Callers 4

scope.test.tsFile · 0.90
mockSdkInitFunction · 0.70
cleanupOtelFunction · 0.70

Calls 5

getCurrentScopeFunction · 0.90
getIsolationScopeFunction · 0.90
getGlobalScopeFunction · 0.90
setClientMethod · 0.80
clearMethod · 0.65

Tested by

no test coverage detected