dd-trace
    Preparing search index...

    Interface TracerProvider

    A registry for creating named Tracers.

    interface TracerProvider {
        new TracerProvider(config?: Record<string, unknown>): TracerProvider;
        getTracer(
            name: string,
            version?: string,
            options?: any,
        ): opentelemetry.Tracer;
        register(): void;
    }

    Hierarchy

    • TracerProvider
      • TracerProvider
    Index

    Constructors

    Methods

    Constructors

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

      Parameters

      • Optionalconfig: 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.

      • Optionalversion: string

        The version of the tracer or instrumentation library.

      • Optionaloptions: any

        The options of the tracer or instrumentation library.

      Returns opentelemetry.Tracer

      Tracer A Tracer with the given name and version

    • Register this tracer provider with @opentelemetry/api

      Returns void