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