This is an automated email from the ASF dual-hosted git repository.

zwoop pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficserver.git


The following commit(s) were added to refs/heads/master by this push:
     new bbff993964 Fixes broken refactoring to new Metrics (#11130)
bbff993964 is described below

commit bbff993964bc1219f17221eb2f9dc2a6e499fea2
Author: Leif Hedstrom <[email protected]>
AuthorDate: Tue Mar 5 12:35:30 2024 -0700

    Fixes broken refactoring to new Metrics (#11130)
---
 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)

Reply via email to