A registry for creating named Tracers.

interface TracerProvider {
    new TracerProvidernew (config?): TracerProvider;
    getTracer(name, version?, options?): export=.opentelemetry.Tracer;
    register(): void;
}

Hierarchy

  • TracerProvider
    • TracerProvider

Constructors

Methods

Constructors

  • Construct a new TracerProvider to register with @opentelemetry/api

    Parameters

    • Optional config: Record<string, unknown>

      Configuration object for the TracerProvider

    Returns TracerProvider

    TracerProvider A TracerProvider instance

Methods

  • Returns a Tracer, creating one if one with the given name and version is not already created.

    Parameters

    • name: string

      The name of the tracer or instrumentation library.

    • Optional version: string

      The version of the tracer or instrumentation library.

    • Optional options: any

      The options of the tracer or instrumentation library.

    Returns export=.opentelemetry.Tracer

    Tracer A Tracer with the given name and version

  • Register this tracer provider with @opentelemetry/api

    Returns void

Generated using TypeDoc