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

PeriodicMetricReader doesn't call flush on the delegate

Open tylerbenson opened this issue 7 months ago • 2 comments

When flush is called on PeriodicMetricReader, it exports to the delegate exporter, but never calls flush. This is fine on any synchronous exporter, but there's no reason exporters have to be synchronous.

It really should invoke flush on the exporters before returning.

tylerbenson avatar May 12 '25 15:05 tylerbenson

Let me know if you want me to submit a PR to fix this.

tylerbenson avatar May 12 '25 15:05 tylerbenson

Let me know if you want me to submit a PR to fix this.

please!

jkwatson avatar May 12 '25 23:05 jkwatson