Register a MetricReader to the meter provider. After the registration, the MetricReader can start metrics collection.
NOTE: MetricReader instances MUST be added before creating any instruments. A MetricReader instance registered later may receive no or incomplete metric data.
the metric reader to be registered.
Notifies all registered MetricReaders to flush any buffered data.
Returns a promise which is resolved when all flushes are complete.
Get a meter with the configuration of the MeterProvider.
Shut down the MeterProvider and all registered MetricReaders.
Returns a promise which is resolved when all flushes are complete.
Generated using TypeDoc
This class implements the MeterProvider interface.