You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: Make OTLP metrics snapshot testing more stable (#7374)
## Summary of changes
Makes the OTLP metrics snapshots more stable by adding ordering, doing
some deduplication (that wasn't reproduced locally), and consolidating
data series by their identifying Resources/Scopes
## Reason for change
We had to mark this test as Flaky, but we really want to make sure it's
stable so we can correctly do regression tests against it.
## Implementation details
Processes the OTLP metrics data after receiving it from the mock tracer
agent. This includes:
- Grouping multiple series of ScopeMetrics into one series if their
Resources match (this is expected and asserted to be true)
- Keeping only one metric data point from a Metric with the same
Resource & InstrumentationScope & Metric Name (should fix the issue with
multiple exports of the same asynchronous counter)
- Scrubs the `telemetry.sdk.version` attribute with a dummy value so we
can successfully test against multiple package versions
## Test coverage
This is the test coverage.
## Other details
0 commit comments