UNPKG

@temporalio/interceptors-opentelemetry

Version:
11 lines (10 loc) 505 B
import { type AsyncLocalStorage } from 'async_hooks'; import * as otel from '@opentelemetry/api'; export declare class ContextManager implements otel.ContextManager { protected storage: AsyncLocalStorage<otel.Context>; active(): otel.Context; bind<T>(context: otel.Context, target: T): T; enable(): this; disable(): this; with<A extends unknown[], F extends (...args: A) => ReturnType<F>>(context: otel.Context, fn: F, thisArg?: ThisParameterType<F>, ...args: A): ReturnType<F>; }