@sentry/core
Version:
Base implementation for all Sentry JavaScript SDKs
14 lines (13 loc) • 512 B
JavaScript
import { getGlobalSingleton } from "./carrier.js";
import { Scope } from "./scope.js";
// src/defaultScopes.ts
/** Get the default current scope. */
function getDefaultCurrentScope() {
return getGlobalSingleton("defaultCurrentScope", () => new Scope());
}
/** Get the default isolation scope. */
function getDefaultIsolationScope() {
return getGlobalSingleton("defaultIsolationScope", () => new Scope());
}
export { getDefaultCurrentScope, getDefaultIsolationScope };
//# sourceMappingURL=defaultScopes.js.map