UNPKG

611 BTypeScriptView Raw
1import { AsyncLocalStorageContextManager } from '@opentelemetry/context-async-hooks';
2/**
3 * This is a custom ContextManager for OpenTelemetry, which extends the default AsyncLocalStorageContextManager.
4 * It ensures that we create a new hub per context, so that the OTEL Context & the Sentry Hub are always in sync.
5 *
6 * Note that we currently only support AsyncHooks with this,
7 * but since this should work for Node 14+ anyhow that should be good enough.
8 */
9export declare const SentryContextManager: new (...args: unknown[]) => AsyncLocalStorageContextManager;
10//# sourceMappingURL=contextManager.d.ts.map
\No newline at end of file