Repository navigation
Count data points in OTLP metric exporter health metrics - #9016
Merged
jack-berg merged 4 commits intoNov 23, 2026
Merged
Conversation
Pull request dashboard statusMerged · refreshed 2026-11-23 17:33 UTC Status above doesn't look right?
|
Give the HTTP and gRPC metric exporter builder fixtures one data point so their meter-provider tests retain meaningful nonzero assertions. Cover legacy and latest exporter instrumentation in both memory modes, including multi-point and empty exports, asynchronous success and failure, and subsequent exports. Assert that legacy seen/exported counters count data points and preserve their type and success attributes, with exported counts updated only after completion.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #9016 +/- ##
============================================
+ Coverage 90.37% 90.53% +0.15%
- Complexity 11018 11186 +168
============================================
Files 1021 1032 +11
Lines 30124 30511 +387
Branches 3933 3994 +61
============================================
+ Hits 27225 27623 +398
+ Misses 1941 1913 -28
- Partials 958 975 +17 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
This comment has been minimized.
This comment has been minimized.
jack-berg
reviewed
Nov 18, 2026
Signed-off-by: goutamadwant <workwithgoutam@gmail.com>
Contributor
Author
|
I narrowed the test in |
jack-berg
approved these changes
Nov 23, 2026
Contributor
|
Thank you for your contribution @goutamadwant! 🎉 We would like to hear from you about your experience contributing to OpenTelemetry by taking a few minutes to fill out this survey. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #9011.
Count the data points across the exported metrics when recording exporter health metrics. Previously, a batch containing three instruments with 3, 2, and 0 points reported 3 items instead of 5. Both reusable and immutable memory modes now pass the point count to the exporter instrumentation.
The regression test checks inflight and exported counts before and after asynchronous success or failure, including empty metrics, empty batches, and subsequent exports.
Validation:
./gradlew :exporters:otlp:common:check :exporters:common:check./gradlew :exporters:otlp:all:testOkHttpVersionLATEST --tests '*MetricExporter*'