-
Notifications
You must be signed in to change notification settings - Fork 366
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
impl(GCS+gRPC): histogram buckets for gRPC metrics #14135
Conversation
21b2145
to
b2babdb
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #14135 +/- ##
==========================================
+ Coverage 93.23% 93.79% +0.55%
==========================================
Files 2206 2295 +89
Lines 192051 202878 +10827
==========================================
+ Hits 179065 190293 +11228
+ Misses 12986 12585 -401 ☔ View full report in Codecov by Sentry. |
The gRPC metrics include histograms, but the default buckets are not very useful.
b2babdb
to
02c20be
Compare
@frankyn can you take a look? You probably have the most context here. |
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'll do the same in Java. I think this is fine.
std::vector<double> MakeSizeHistogramBoundaries() { | ||
auto constexpr kKiB = std::int64_t{1024}; | ||
auto constexpr kMiB = 1024 * kKiB; | ||
auto constexpr kGiB = 1024 * kMiB; |
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.
k
represents constant if iiuc https://stackoverflow.com/questions/5016622/where-does-the-k-prefix-for-constants-come-from; doesn't matter just got confused.
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.
The gRPC metrics include histograms, but the default buckets are not
very useful.
Part of the work for #13998
This change is