1 | import { Context } from '../context/types';
|
2 | import { Span } from './span';
|
3 | import { SpanOptions } from './SpanOptions';
|
4 | import { Tracer } from './tracer';
|
5 | import { TracerOptions } from './tracer_options';
|
6 |
|
7 |
|
8 |
|
9 | export 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 | }
|
24 | export interface TracerDelegator {
|
25 | getDelegateTracer(name: string, version?: string, options?: TracerOptions): Tracer | undefined;
|
26 | }
|
27 |
|
\ | No newline at end of file |