UNPKG

918 BTypeScriptView Raw
1import { MeterProvider } from '../metrics/MeterProvider';
2import { ContextManager } from '../context/types';
3import { DiagLogger } from '../diag/types';
4import { TextMapPropagator } from '../propagation/TextMapPropagator';
5import type { TracerProvider } from '../trace/tracer_provider';
6export declare function registerGlobal<Type extends keyof OTelGlobalAPI>(type: Type, instance: OTelGlobalAPI[Type], diag: DiagLogger, allowOverride?: boolean): boolean;
7export declare function getGlobal<Type extends keyof OTelGlobalAPI>(type: Type): OTelGlobalAPI[Type] | undefined;
8export declare function unregisterGlobal(type: keyof OTelGlobalAPI, diag: DiagLogger): void;
9declare type OTelGlobalAPI = {
10 version: string;
11 diag?: DiagLogger;
12 trace?: TracerProvider;
13 context?: ContextManager;
14 metrics?: MeterProvider;
15 propagation?: TextMapPropagator;
16};
17export {};
18//# sourceMappingURL=global-utils.d.ts.map
\No newline at end of file