UNPKG

849 BTypeScriptView Raw
1import { Tracer } from './tracer';
2import { TracerOptions } from './tracer_options';
3/**
4 * A registry for creating named {@link Tracer}s.
5 */
6export interface TracerProvider {
7 /**
8 * Returns a Tracer, creating one if one with the given name and version is
9 * not already created.
10 *
11 * This function may return different Tracer types (e.g.
12 * {@link NoopTracerProvider} vs. a functional tracer).
13 *
14 * @param name The name of the tracer or instrumentation library.
15 * @param version The version of the tracer or instrumentation library.
16 * @param options The options of the tracer or instrumentation library.
17 * @returns Tracer A Tracer with the given name and version
18 */
19 getTracer(name: string, version?: string, options?: TracerOptions): Tracer;
20}
21//# sourceMappingURL=tracer_provider.d.ts.map
\No newline at end of file