UNPKG

992 BTypeScriptView Raw
1import { Tracer } from './tracer';
2import { TracerProvider } from './tracer_provider';
3import { TracerOptions } from './tracer_options';
4/**
5 * Tracer provider which provides {@link ProxyTracer}s.
6 *
7 * Before a delegate is set, tracers provided are NoOp.
8 * When a delegate is set, traces are provided from the delegate.
9 * When a delegate is set after tracers have already been provided,
10 * all tracers already provided will use the provided delegate implementation.
11 */
12export declare class ProxyTracerProvider implements TracerProvider {
13 private _delegate?;
14 /**
15 * Get a {@link ProxyTracer}
16 */
17 getTracer(name: string, version?: string, options?: TracerOptions): Tracer;
18 getDelegate(): TracerProvider;
19 /**
20 * Set the delegate tracer provider
21 */
22 setDelegate(delegate: TracerProvider): void;
23 getDelegateTracer(name: string, version?: string, options?: TracerOptions): Tracer | undefined;
24}
25//# sourceMappingURL=ProxyTracerProvider.d.ts.map
\No newline at end of file