Skip to content
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

Include effects of force flush in Sdk shutdown #3085

Closed

Conversation

legendecas
Copy link
Member

Fixes #2983

Changes

This aligns the metrics sdk spec with the trace spec that Shutdown MUST include the effects of ForceFlush.: https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/trace/sdk.md#shutdown-1.

@@ -895,6 +895,8 @@ SHOULD return some failure for these calls, if possible.
`Shutdown` SHOULD provide a way to let the caller know whether it succeeded,
failed or timed out.

`Shutdown` SHOULD include the effects of `ForceFlush`.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Where is ForceFlush?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This statement is identical to the statement in SpanProcessor.Shutdown in trace sdk. Do you suggest that we should clarify the subject of the ForceFlush (and update the trace sdk spec too)?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I mean, it's fair for SpanProcessor to say "Shutdown should include the effects of ForceFlush" because SpanProcessor has both Shutdown and ForceFlush. It is weird for MetricReader to say so because MetricReader doesn't have ForceFlush.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the clarification. MetricReader.ForceFlush is being clarified at #3084, since it is already mentioned in the spec.

Copy link
Member

@reyang reyang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's unclear what/which ForceFlush does this PR refer to.

@github-actions
Copy link

This PR was marked stale due to lack of activity. It will be closed in 7 days.

@github-actions github-actions bot added the Stale label Jan 25, 2023
@legendecas
Copy link
Member Author

Not stale, waiting for #3084 landing first.

@yurishkuro yurishkuro removed the Stale label Jan 25, 2023
@github-actions
Copy link

github-actions bot commented Feb 2, 2023

This PR was marked stale due to lack of activity. It will be closed in 7 days.

@github-actions github-actions bot added the Stale label Feb 2, 2023
@github-actions
Copy link

github-actions bot commented Feb 9, 2023

Closed as inactive. Feel free to reopen if this PR is still being worked on.

@github-actions github-actions bot closed this Feb 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

PeriodicExportingMetricReader should collect all metrics on shutdown
6 participants