This is an automated email from the ASF dual-hosted git repository. cmcfarlen pushed a commit to branch 10.0.x in repository https://gitbox.apache.org/repos/asf/trafficserver.git
commit 9690e2f681b7f750289d66643322245f04273ea7 Author: Leif Hedstrom <[email protected]> AuthorDate: Tue Mar 5 12:35:30 2024 -0700 Fixes broken refactoring to new Metrics (#11130) (cherry picked from commit bbff993964bc1219f17221eb2f9dc2a6e499fea2) --- include/cripts/Metrics.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/cripts/Metrics.hpp b/include/cripts/Metrics.hpp index 89fe993cb1..76fbcb16cd 100644 --- a/include/cripts/Metrics.hpp +++ b/include/cripts/Metrics.hpp @@ -122,7 +122,7 @@ class Counter : public detail::BaseMetrics using self_type = Counter; public: - Counter(const Cript::string_view &name) : super_type(name) {} + Counter(const Cript::string_view &name) : super_type(name) { _initialize(ts::Metrics::Counter::create(name)); } // Counters can only increment, so lets produce some nice compile time erorrs too void decrement(int64_t) = delete; @@ -161,7 +161,7 @@ class Gauge : public detail::BaseMetrics using self_type = Gauge; public: - Gauge(const Cript::string_view &name) : super_type(name) {} + Gauge(const Cript::string_view &name) : super_type(name) { _initialize(ts::Metrics::Gauge::create(name)); } static self_type * create(const Cript::string_view &name)
