Options
All
  • Public
  • Public/Protected
  • All
Menu

Class MetricsAPI

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

Hierarchy

  • MetricsAPI

Index

Constructors

Private constructor

Properties

Private _meterProvider

_meterProvider: MeterProvider = NOOP_METER_PROVIDER

Static Private Optional _instance

_instance: MetricsAPI

Methods

getMeter

  • getMeter(name: string, version?: undefined | string): Meter
  • Returns a meter from the global meter provider.

    Parameters

    • name: string
    • Optional version: undefined | string

    Returns Meter

getMeterProvider

setGlobalMeterProvider

Static getInstance