From c0b834b0b44ee4358e1f8494e4afcfd37abc7d75 Mon Sep 17 00:00:00 2001 From: Vasiliy Tolstov Date: Thu, 13 Apr 2023 20:01:15 +0300 Subject: [PATCH] fix flout counter on clone Signed-off-by: Vasiliy Tolstov --- prometheus.go | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/prometheus.go b/prometheus.go index aca3d7e..e55db7f 100644 --- a/prometheus.go +++ b/prometheus.go @@ -388,12 +388,13 @@ func (m *prometheusMeter) Clone(opts ...meter.Option) meter.Meter { } return &prometheusMeter{ - set: m.set, - opts: options, - counter: m.counter, - gauge: m.gauge, - histogram: m.histogram, - summary: m.summary, + set: m.set, + opts: options, + floatCounter: m.floatCounter, + counter: m.counter, + gauge: m.gauge, + histogram: m.histogram, + summary: m.summary, } } -- 2.45.2