Options
All
  • Public
  • Public/Protected
  • All
Menu

Class TraceAPI

Singleton object which represents the entry point to the OpenTelemetry Tracing API

Hierarchy

  • TraceAPI

Index

Constructors

Private constructor

  • Empty private constructor prevents end users from constructing a new instance of the API

    Returns TraceAPI

Properties

Static Private Optional _instance

_instance: TraceAPI

Methods

disable

  • disable(): void

getTracer

  • getTracer(name: string, version?: undefined | string): Tracer
  • Returns a tracer from the global tracer provider.

    Parameters

    • name: string
    • Optional version: undefined | string

    Returns Tracer

getTracerProvider

setGlobalTracerProvider

Static getInstance