UNPKG

1.19 kBTypeScriptView Raw
1import { Context } from '../context/types';
2import { Span } from './span';
3import { SpanOptions } from './SpanOptions';
4import { Tracer } from './tracer';
5import { TracerOptions } from './tracer_options';
6/**
7 * Proxy tracer provided by the proxy tracer provider
8 */
9export declare class ProxyTracer implements Tracer {
10 private _provider;
11 readonly name: string;
12 readonly version?: string | undefined;
13 readonly options?: TracerOptions | undefined;
14 private _delegate?;
15 constructor(_provider: TracerDelegator, name: string, version?: string | undefined, options?: TracerOptions | undefined);
16 startSpan(name: string, options?: SpanOptions, context?: Context): Span;
17 startActiveSpan<F extends (span: Span) => unknown>(_name: string, _options: F | SpanOptions, _context?: F | Context, _fn?: F): ReturnType<F>;
18 /**
19 * Try to get a tracer from the proxy tracer provider.
20 * If the proxy tracer provider has no delegate, return a noop tracer.
21 */
22 private _getTracer;
23}
24export interface TracerDelegator {
25 getDelegateTracer(name: string, version?: string, options?: TracerOptions): Tracer | undefined;
26}
27//# sourceMappingURL=ProxyTracer.d.ts.map
\No newline at end of file