Files
klz-cables.com/.pnpm-store/v10/files/e5/df59bc6c7df2c1f9f8e2ed98ea8a3973a40b18d3bf403f6bb3f6ac71a89c66eccdfb60f57ac3b0ae18455528d2b7fff502a2285c67faadb9de6f4789bdf24e
Marc Mintel 5397309103
Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
fix(products): fix breadcrumbs and product filtering (backport from main)
2026-02-24 16:04:21 +01:00

61 lines
2.7 KiB
Plaintext

import { Client } from './client';
import { Scope } from './scope';
import { TraceContext } from './types-hoist/context';
/**
* Get the currently active scope.
*/
export declare function getCurrentScope(): Scope;
/**
* Get the currently active isolation scope.
* The isolation scope is active for the current execution context.
*/
export declare function getIsolationScope(): Scope;
/**
* Get the global scope.
* This scope is applied to _all_ events.
*/
export declare function getGlobalScope(): Scope;
/**
* Creates a new scope with and executes the given operation within.
* The scope is automatically removed once the operation
* finishes or throws.
*/
export declare function withScope<T>(callback: (scope: Scope) => T): T;
/**
* Set the given scope as the active scope in the callback.
*/
export declare function withScope<T>(scope: Scope | undefined, callback: (scope: Scope) => T): T;
/**
* Attempts to fork the current isolation scope and the current scope based on the current async context strategy. If no
* async context strategy is set, the isolation scope and the current scope will not be forked (this is currently the
* case, for example, in the browser).
*
* Usage of this function in environments without async context strategy is discouraged and may lead to unexpected behaviour.
*
* This function is intended for Sentry SDK and SDK integration development. It is not recommended to be used in "normal"
* applications directly because it comes with pitfalls. Use at your own risk!
*/
export declare function withIsolationScope<T>(callback: (isolationScope: Scope) => T): T;
/**
* Set the provided isolation scope as active in the given callback. If no
* async context strategy is set, the isolation scope and the current scope will not be forked (this is currently the
* case, for example, in the browser).
*
* Usage of this function in environments without async context strategy is discouraged and may lead to unexpected behaviour.
*
* This function is intended for Sentry SDK and SDK integration development. It is not recommended to be used in "normal"
* applications directly because it comes with pitfalls. Use at your own risk!
*
* If you pass in `undefined` as a scope, it will fork a new isolation scope, the same as if no scope is passed.
*/
export declare function withIsolationScope<T>(isolationScope: Scope | undefined, callback: (isolationScope: Scope) => T): T;
/**
* Get the currently active client.
*/
export declare function getClient<C extends Client>(): C | undefined;
/**
* Get a trace context for the given scope.
*/
export declare function getTraceContextFromScope(scope: Scope): TraceContext;
//# sourceMappingURL=currentScopes.d.ts.map