-
Notifications
You must be signed in to change notification settings - Fork 789
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ci(instrumentation-http): improve metrics test stability #3242
ci(instrumentation-http): improve metrics test stability #3242
Conversation
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #3242 +/- ##
==========================================
- Coverage 93.30% 93.29% -0.02%
==========================================
Files 203 203
Lines 6606 6606
Branches 1389 1389
==========================================
- Hits 6164 6163 -1
- Misses 442 443 +1
|
I think the changes in #3225 broke this PR and now you have to use the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm in favor of this explicit collection than the periodic metric reader based approach!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CI is complaining but the code LGTM.
Hey! That's an awesome feature! |
Hi, thanks! 🙂 While I do agree that this is quite useful for tests, there are no plans to export this right now (see this comment here). |
@pichlermarc Thanks :) |
Which problem is this PR solving?
Currently the tests for metrics in the
@opentelemetry/http-instrumentation
package are failing every once in a while. This PR aims to improve test stability by introducing a customMetricReader
with a export method that does not rely on time passed.Fixes #3238
Type of change
How Has This Been Tested?
Checklist: