Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface TracerProvider

TracerProvider provides an interface for creating Tracers

Hierarchy

  • TracerProvider

Implemented by

Index

Methods

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.

    If there is no Span associated with the current context, null is returned.

    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