Add support for batching in PeriodicMetricReader#8296
Add support for batching in PeriodicMetricReader#8296psx95 wants to merge 55 commits intoopen-telemetry:mainfrom
Conversation
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #8296 +/- ##
============================================
- Coverage 90.82% 90.82% -0.01%
- Complexity 7927 7944 +17
============================================
Files 895 896 +1
Lines 23872 24010 +138
Branches 2378 2390 +12
============================================
+ Hits 21681 21806 +125
- Misses 1446 1456 +10
- Partials 745 748 +3 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 6 out of 6 changed files in this pull request and generated 2 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 6 out of 6 changed files in this pull request and generated 2 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Signed-off-by: Gregor Zeitlinger <gregor.zeitlinger@grafana.com>
# Conflicts: # sdk/metrics/src/main/java/io/opentelemetry/sdk/metrics/export/MetricExportBatcher.java
…ropagation' into lane-a-pr-8296 # Conflicts: # sdk/metrics/src/test/java/io/opentelemetry/sdk/metrics/export/PeriodicMetricReaderTest.java Signed-off-by: Gregor Zeitlinger <gregor.zeitlinger@grafana.com>
Signed-off-by: Gregor Zeitlinger <gregor.zeitlinger@grafana.com>
…propagation Fix batched forceFlush failure and make batching linear
jack-berg
left a comment
There was a problem hiding this comment.
Couple of comments, but looks pretty good!
|
Addressed all the feedback on this PR and added a Changelog entry as well. The CI Build failure on Windows for Java 11 looks like a transient error and might be fixed upon retrying. |
This PR adds support for configuring
setMaxExportBatchSizeon thePeriodicMetricReaderthat sets the maximum number of metric data points to be sent in a single export call.If the number of metric data points (across
Collection<MetricData>) scheduled to be export exceeds themaxExportBatchSize, the data points organized in batches and sent over multiple export calls.These changes do not modify the current timeout behavior, which is still per export call.
Fix #8245