-
Notifications
You must be signed in to change notification settings - Fork 893
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is a MetricReader
supposed to implement ForceFlush
?
#2924
Comments
IIRC, when we discussed the same issue for Python implementation (issue here open-telemetry/opentelemetry-python#2554), I believe it was @jack-berg who pointed us that there is a text in
I think it could have been clearer if there was a |
@srikanthccv Answered this well. You can use different method names, appropriate to the paradigm you use for MetricReader. However, the key is that you implement a working ForceFlush for appropriate readers. (E.g. PeriodicMetricReader should perform a flush when this is called, while a Pull-based reader/exporter may be unable to). |
|
What are you trying to achieve?
The specification for
ForceFlush
on theMeterProvider
mentions thatHowever, the specification for
MetricReader
's operations does not specifyForceFlush
.What did you expect to see?
It seems like the spec hints that
MetricReader
should implementForceFlush
. If this is the intention, it would be nice to have this clarified by explicitly specifying it in the MetricReader operations spec. 🙂The goal of this issue is to determine if
MetricReader
should implementForceFlush
, and - if yes - clarify the spec accordingly.Additional context.
This came up during the spec review of the JavaScript Metrics SDK, see open-telemetry/community#1204 (comment)
Aside from the JavaScript SDK at least 2 other language SDKs do already implement a
ForceFlush
on theMetricReader
, see:The text was updated successfully, but these errors were encountered: