Skip to content

[processor/interval] Flush buffer on shutdown#47247

Merged
edmocosta merged 6 commits into
open-telemetry:mainfrom
r0mdau:feat-ctx-interval
Apr 2, 2026
Merged

[processor/interval] Flush buffer on shutdown#47247
edmocosta merged 6 commits into
open-telemetry:mainfrom
r0mdau:feat-ctx-interval

Conversation

@r0mdau

@r0mdau r0mdau commented Mar 31, 2026

Copy link
Copy Markdown
Contributor

Description

On shutdown, the interval processor should flush its remaining buffered metrics to the next consumer before exiting, consistent with how the batch processor in core handles this.

Link to tracking issue

Fixes #47238

Testing

Added unit test to ensure the next component get the metrics on shutdown.

Documentation

Edited the README to inform this feature.

@r0mdau r0mdau requested a review from a team as a code owner March 31, 2026 00:23
@r0mdau r0mdau requested a review from evan-bradley March 31, 2026 00:23
@github-actions github-actions Bot requested a review from RichieSams March 31, 2026 00:23
Comment thread processor/intervalprocessor/README.md Outdated
Comment thread processor/intervalprocessor/processor_test.go Outdated
Comment thread processor/intervalprocessor/README.md Outdated

@atoulme atoulme left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM just need to take care of the spurious diff on the README

Comment thread processor/intervalprocessor/processor.go
@edmocosta edmocosta merged commit 3198400 into open-telemetry:main Apr 2, 2026
191 checks passed
@otelbot

otelbot Bot commented Apr 2, 2026

Copy link
Copy Markdown
Contributor

Thank you for your contribution @r0mdau! 🎉 We would like to hear from you about your experience contributing to OpenTelemetry by taking a few minutes to fill out this survey. If you are getting started contributing, you can also join the CNCF Slack channel #opentelemetry-new-contributors to ask for guidance and get help.

@r0mdau r0mdau deleted the feat-ctx-interval branch April 2, 2026 12:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[processor/interval] Feature flush buffer on shutdown

5 participants