Files
klz-cables.com/.pnpm-store/v10/files/db/e58a709e2d42dbd73894ae85839d6a0a0a1f5d59436d07a8953e1eb5c29a13a759f54f189956ad0bf8595501a269934da20c99a62905722be0ad4dd5724f9f
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

20 lines
1.1 KiB
Plaintext

import type { AsyncLocalStorage } from 'node:async_hooks';
import type { ContextManager } from '@opentelemetry/api';
export type AsyncLocalStorageLookup = {
asyncLocalStorage: AsyncLocalStorage<unknown>;
contextSymbol: symbol;
};
type ExtendedContextManagerInstance<ContextManagerInstance extends ContextManager> = new (...args: unknown[]) => ContextManagerInstance & {
getAsyncLocalStorageLookup(): AsyncLocalStorageLookup;
};
/**
* Wrap an OpenTelemetry ContextManager in a way that ensures the context is kept in sync with the Sentry Scope.
*
* Usage:
* import { AsyncLocalStorageContextManager } from '@opentelemetry/context-async-hooks';
* const SentryContextManager = wrapContextManagerClass(AsyncLocalStorageContextManager);
* const contextManager = new SentryContextManager();
*/
export declare function wrapContextManagerClass<ContextManagerInstance extends ContextManager>(ContextManagerClass: new (...args: unknown[]) => ContextManagerInstance): ExtendedContextManagerInstance<ContextManagerInstance>;
export {};
//# sourceMappingURL=contextManager.d.ts.map