opentelemetry-python icon indicating copy to clipboard operation
opentelemetry-python copied to clipboard

MeterProvider forceflush must invoke forceflush on push metric exporters

Open ocelotl opened this issue 3 years ago • 2 comments

From the spec:

ForceFlush MUST invoke ForceFlush on all registered MetricReader and Push Metric Exporter instances.

ocelotl avatar Mar 24 '22 22:03 ocelotl

We didn't add force_flush on metric reader interface. I think @aabmass suggested we will just invoke collect.

srikanthccv avatar Mar 25 '22 08:03 srikanthccv

This seems like a spec bug; there is no ForceFlush on the MetricReader https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/metrics/sdk.md#metricreader-operations

aabmass avatar Mar 31 '22 16:03 aabmass