From 38069c9f235cf58534ccf1d56eb2a4b8ea66f8a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Piotr=20Mi=C5=9Bkiewicz?= Date: Thu, 14 Nov 2024 13:48:24 +0100 Subject: [PATCH] Fix unbind histogram update (#1452) --- internal/metricsv2/bind.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/metricsv2/bind.go b/internal/metricsv2/bind.go index 4b7685492e..acfb991e76 100644 --- a/internal/metricsv2/bind.go +++ b/internal/metricsv2/bind.go @@ -59,7 +59,7 @@ func (c *BindDurationCollector) OnBindingExecuted(ctx context.Context, ev interf func (c *BindDurationCollector) OnUnbindingExecuted(ctx context.Context, ev interface{}) error { obj := ev.(broker.UnbindRequestProcessed) - c.bindHistorgam.WithLabelValues().Observe(float64(obj.ProcessingDuration.Milliseconds())) + c.unbindHistogram.WithLabelValues().Observe(float64(obj.ProcessingDuration.Milliseconds())) return nil }