Skip to content

Commit

Permalink
for summary
Browse files Browse the repository at this point in the history
  • Loading branch information
qicosmos committed Jun 25, 2024
1 parent 2b527aa commit 2660e11
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions include/cinatra/ylt/metric/summary.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ class summary_t : public metric_t {
block_->quantile_values_ =
std::make_shared<TimeWindowQuantiles>(quantiles_, max_age, age_buckets);
use_atomic_ = true;
g_user_metric_count++;
}

summary_t(std::string name, std::string help, Quantiles quantiles,
Expand All @@ -58,6 +59,7 @@ class summary_t : public metric_t {
max_age_(max_age),
age_buckets_(age_buckets) {
init_block(labels_block_);
g_user_metric_count++;
}

summary_t(std::string name, std::string help, Quantiles quantiles,
Expand All @@ -75,6 +77,7 @@ class summary_t : public metric_t {
labels_block_->label_count_.emplace(labels_value_, 0);
labels_block_->label_sum_.emplace(labels_value_, 0);
use_atomic_ = true;
g_user_metric_count++;
}

~summary_t() {
Expand Down

0 comments on commit 2660e11

Please sign in to comment.