-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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 typo in metrics document #10374
Fix typo in metrics document #10374
Conversation
✅ Deploy Preview for meta-velox canceled.
|
@@ -43,7 +42,7 @@ number of shuffle requests per second. | |||
**Histogram**: tracks the distribution of event data point values, such as query | |||
execution time distribution. The histogram metric divides the entire data range | |||
into a series of adjacent equal-sized intervals or buckets, and then count how | |||
many data values fall into each bucket. DEFINE_HISTOGRAM_STAT specifies the data | |||
many data values fall into each bucket. DEFINE_HISTOGRAM_METRIC specifies the data |
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.
See:
velox/velox/common/base/StatsReporter.h
Lines 213 to 227 in 2518463
#define DEFINE_HISTOGRAM_METRIC(key, bucket, min, max, ...) \ | |
{ \ | |
if (::facebook::velox::BaseStatsReporter::registered) { \ | |
auto reporter = folly::Singleton< \ | |
facebook::velox::BaseStatsReporter>::try_get_fast(); \ | |
if (FOLLY_LIKELY(reporter != nullptr)) { \ | |
reporter->registerHistogramMetricExportType( \ | |
(key), \ | |
(bucket), \ | |
(min), \ | |
(max), \ | |
(std::vector<int32_t>({__VA_ARGS__}))); \ | |
} \ | |
} \ | |
} |
The name of the macro used to register a histogram-type metric is DEFINE_HISTOGRAM_METRIC
, not DEFINE_HISTOGRAM_STAT
, this PR fixes it.
`DEFINE_HISTOGRAM_STAT` --> `DEFINE_HISTOGRAM_METRIC` The name of the macro used to register a histogram-type metric is `DEFINE_HISTOGRAM_METRIC`, not `DEFINE_HISTOGRAM_STAT`, this PR fixes it.
1e140be
to
72b6c38
Compare
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.
Looks good. Thanks @lingbin
@mbasmanova has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
@mbasmanova merged this pull request in bf21268. |
Conbench analyzed the 1 benchmark run on commit There were no benchmark performance regressions. 🎉 The full Conbench report has more details. |
DEFINE_HISTOGRAM_STAT
-->DEFINE_HISTOGRAM_METRIC
The name of the macro used to register a histogram-type metric is
DEFINE_HISTOGRAM_METRIC
, notDEFINE_HISTOGRAM_STAT
, this PRfixes it.