File tree Expand file tree Collapse file tree 2 files changed +1
-4
lines changed
Expand file tree Collapse file tree 2 files changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ const std::string Metric::name() { return name_; }
1212const std::string Metric::type () { return type_; }
1313const std::vector<std::string> Metric::tags () { return tags_; }
1414bool Metric::common () { return common_; }
15- uint64_t Metric::value () { return value_; }
15+ uint64_t Metric::value () { return value_. exchange ( 0 ) ; }
1616
1717CounterMetric::CounterMetric (const std::string name,
1818 const std::vector<std::string> tags, bool common)
Original file line number Diff line number Diff line change @@ -100,9 +100,6 @@ void TracerTelemetry::capture_metrics() {
100100 .count ();
101101 for (auto & m : metrics_snapshots_) {
102102 auto value = m.first .get ().value ();
103- if (value == 0 ) {
104- continue ;
105- }
106103 m.second .emplace_back (timepoint, value);
107104 }
108105}
You can’t perform that action at this time.
0 commit comments