-
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
Explicitly define metric reader force flush operation #3084
Conversation
80cfeb3
to
721a073
Compare
721a073
to
a9aae7a
Compare
Could this be fixed by changing: ForceFlush MUST invoke ForceFlush on all registered MetricReader and Push Metric Exporter instances. to: ForceFlush MUST invoke |
@reyang for pull metric reader, I don't think it is meaningful to invoke |
This PR was marked stale due to lack of activity. It will be closed in 7 days. |
This PR was marked stale due to lack of activity. It will be closed in 7 days. |
Not stale, friendly ping @reyang |
Hi @legendecas, what's expected from me? |
@reyang has your question #3084 (comment) been addressed with #3084 (comment)? If so, is this PR still looking good to you? |
I didn't ask a question, in the comment I had a suggestion. With the change proposed by the current PR, I find it hard to understand what's the difference between MetricReader.Collect and MetricReader.ForceFlush. |
This PR was marked stale due to lack of activity. It will be closed in 7 days. |
@reyang
The statement in the spec has already mentioned that SDK's |
This PR was marked stale due to lack of activity. It will be closed in 7 days. |
Closed as inactive. Feel free to reopen if this PR is still being worked on. |
Related: #2983
Related: open-telemetry/opentelemetry-js#3278
Changes
The method
MetricReader.ForceFlush
is already mentioned in https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/metrics/sdk.md#forceflush. However, the specification doesn't explicitly define the methodMetricReader.ForceFlush
.This also suggests that
ForceFlush
of Periodic exporting MetricReader should callCollect
to consume the metrics.