-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
[chore] [exporterhelper] Increase test coverage for persistent queue #8250
[chore] [exporterhelper] Increase test coverage for persistent queue #8250
Conversation
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## main #8250 +/- ##
==========================================
+ Coverage 90.18% 90.32% +0.13%
==========================================
Files 302 303 +1
Lines 15859 15904 +45
==========================================
+ Hits 14303 14365 +62
+ Misses 1261 1243 -18
- Partials 295 296 +1
☔ View full report in Codecov by Sentry. |
c752e83
to
3930908
Compare
84c4ad2
to
e11eb7b
Compare
There's a test failing:
|
It looks like a conflict caused by reusing the global instrument for OC. Looking into how to workaround or fix it it |
042e173
to
676366f
Compare
676366f
to
85329d9
Compare
85329d9
to
8f4a3cb
Compare
`checkValueForProducer` test helper assumes that every OC metric has only one timeseries. But, since the queue metrics are defined globally, they accumulate more timeseries with different labels from different tests. This change removes that assumption. It allows having more tests for the exporter queue without breaking TestQueuedRetry_QueueMetricsReported. Ideally, we should avoid defining instruments globally or clear them up after each test. The first option would require passing the OpenCensus registry in as a public field of TelemetrySettings from the service start. The second option would require a bigger refactoring. I think we can allow several tests emitting datapoints for the global instruments for now until we migrate to OTel metrics. Fixes tests failing in #8250
Add tests covering e2e data delivery through persistent storage
8f4a3cb
to
ca19987
Compare
Add tests covering e2e data delivery using the persistent queue