Collect all metrics from the associated MetricProducer
Optional
options: CommonReaderOptionsFlushes metrics read by this reader, the promise will reject after the optional timeout or resolve after completion.
NOTE: this operation MAY continue even after the promise rejects due to a timeout.
Optional
options: CommonReaderOptionsoptions with timeout.
Select the AggregationOption for the given InstrumentType for this reader.
NOTE: implementations MUST be pure
Select the AggregationTemporality for the given InstrumentType for this reader.
NOTE: implementations MUST be pure
Select the cardinality limit for the given InstrumentType for this reader.
NOTE: implementations MUST be pure
Set the MetricProducer used by this instance. This should only be called once by the SDK and should be considered internal.
NOTE: implementations MUST throw when called more than once
Shuts down the metric reader, the promise will reject after the optional timeout or resolve after completion.
NOTE: this operation MAY continue even after the promise rejects due to a timeout.
Optional
options: CommonReaderOptionsoptions with timeout.
Reads metrics from the SDK. Implementations MUST follow the Metric Reader Specification as well as the requirements listed in this interface. Consider extending MetricReader to get a specification-compliant base implementation of this interface