Class MetricsAPI

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

Hierarchy

  • MetricsAPI

Constructors

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

    Returns MetricsAPI

Properties

_instance?: any

Methods

  • Remove the global meter provider

    Returns void

  • Returns a meter from the global meter provider.

    Parameters

    • name: string
    • Optional version: string
      Optional
    • Optional options: MeterOptions
      Optional

    Returns Meter

  • Returns the global meter provider.

    Returns MeterProvider

  • Set the current global meter provider. Returns true if the meter provider was successfully registered, else false.

    Parameters

    Returns boolean

  • Get the singleton instance of the Metrics API

    Returns MetricsAPI

Generated using TypeDoc