open-telemetry / open-telemetry/opentelemetry-java-contrib
Expose API to do manual flushing of cached data
@zeitlinger is already working on this.
Since Oct 21, 2025.
- Dominant language
- Java
- Stars
- 269
- Forks
- 196
- Avg merge
- 2d 7h
- Merged PRs (30d)
- 38
Description
Component(s)
disk-buffering
Is your feature request related to a problem? Please describe.
Currently, the disk buffer flushes only based on time, but for use cases such as Android, it would be nice to have a way to shortcut this and do it on demand, like when the app is about to go into the background, which means it could be killed by the OS at any time.
Describe the solution you'd like
An API that basically allows the app to say "cut the batch now and send what has been cached" would be very useful.
Describe alternatives you've considered
No response
Additional context
No response
Tip
React with 👍 to help prioritize this issue. Please use comments to provide useful context, avoiding +1 or me too, to help us triage it. Learn more here.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.