Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface TracerProvider

A registry for creating named Tracers.

Hierarchy

  • TracerProvider
    • TracerProvider

Index

Constructors

Methods

Constructors

constructor

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

    Returns TracerProvider

    TracerProvider A TracerProvider instance

Methods

getTracer

  • getTracer(name: string, version?: undefined | string): Tracer
  • Returns a Tracer, creating one if one with the given name and version is not already created.

    This function may return different Tracer types (e.g. {@link NoopTracerProvider} vs. a functional tracer).

    Parameters

    • name: string

      The name of the tracer or instrumentation library.

    • Optional version: undefined | string

      The version of the tracer or instrumentation library.

    Returns Tracer

    Tracer A Tracer with the given name and version

register

  • register(): void
  • Register this tracer provider with @opentelemetry/api

    Returns void

Generated using TypeDoc