-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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][exporter/signalfx] fix tests #31522
Conversation
if tt.wantMetricCount == 0 { | ||
assert.Equal(t, tt.wantMetrics(), gotMetrics) | ||
} else { |
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'd say this part is redundant. pmetrictest.CompareMetrics
should do the job even if wantMetricCount == 0, right?
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.
with no histograms, we return uninitialized pmetric.Metrics{} and CompareMetrics does not check for nil
ci failure due to #31443 |
@jinja2 Can you update the description to say |
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.
Thanks for fixing, really appreciate the quick resolution here!
Update test cases to ignore the order of resource/scope metrics since the returned histograms-only pmetrics can have different ordering for resource and scope metrics Fixes open-telemetry#31493
Description:
Update test cases to ignore the order of resource/scope metrics since the returned histograms-only pmetrics can have different ordering for resource and scope metrics
Link to tracking Issue: Fixes #31493
Testing:
Documentation: