Collect async exemplars when exemplar filter is always_on#8363
Collect async exemplars when exemplar filter is always_on#8363ADITYA-CODE-SOURCE wants to merge 6 commits into
Conversation
Allow asynchronous metric storage to use the configured exemplar filter so always_on can capture async exemplars, matching the clarified spec. Add coverage at both the storage and SDK integration levels. Refs open-telemetry#8355
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #8363 +/- ##
=========================================
Coverage 90.87% 90.88%
- Complexity 7989 7991 +2
=========================================
Files 898 898
Lines 24119 24119
Branches 2412 2412
=========================================
+ Hits 21919 21920 +1
+ Misses 1456 1455 -1
Partials 744 744 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
jack-berg
left a comment
There was a problem hiding this comment.
Thanks for picking this up. Just one comment, but looks pretty good on the whole
| } | ||
|
|
||
| @Test | ||
| void collectAll_AsyncInstrumentAlwaysOnExemplars() { |
There was a problem hiding this comment.
Please add tests of this shape to:
- SdkObservableDoubleCounterTest
- SdkObservableDoubleUpDownCounterTest
- SdkObservableLongCounterTest
- SdkObservableLongUpDownCounterTest
- SdkDoubleGaugeTest
- SdkLongGaugeTest
Should also add assertions to the default case to ensure that no exemplars are reported.
|
@jack-berg Thanks for the review. I added the requested async exemplar coverage to the six instrument test classes you called out, and I also added default-case assertions to verify that no exemplars are reported unless always_on is configured.\n\nI ran the focused sdk:metrics test suite for the touched classes locally, and the updated branch is pushed now. |
Summary
Fixes #8355