-
Notifications
You must be signed in to change notification settings - Fork 440
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
Fix Prometheus exporter failure #1460
Conversation
Codecov Report
@@ Coverage Diff @@
## main #1460 +/- ##
=======================================
Coverage 85.30% 85.30%
=======================================
Files 154 154
Lines 4373 4373
=======================================
Hits 3730 3730
Misses 643 643 |
{ | ||
sum = nostd::get<long>(histogram_point_data.sum_); | ||
} | ||
SetData(std::vector<double>{sum, (double)histogram_point_data.count_}, boundaries, |
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.
nit - Why do we have std::vector<double>
as first argument. Will we need to pass vector of aggregated values in this?
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.
That came from the legacy exporter code that I reused. The vector is used in SetValue
called by SetData
, supposedly to have slightly similar overload signature.
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.
LGTM. Thanks for the fix.
Fixes histogram_point_data.sum_ variant access, also limits the max_collection_size of Prometheus collector needed for unit test.
Changes
Please provide a brief description of the changes here.
For significant contributions please make sure you have completed the following items:
CHANGELOG.md
updated for non-trivial changes