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

Function getGlobalScope

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

Source from the content-addressed store, hash-verified

54 * This scope is applied to _all_ events.
55 */
56export function getGlobalScope(): Scope {
57 return getGlobalSingleton('globalScope', () => new Scope());
58}
59
60/**
61 * Creates a new scope with and executes the given operation within.

Calls 1

getGlobalSingletonFunction · 0.90

Tested by

no test coverage detected