From 6f9057d696f80a2d674f9e4d2ae0b6911d177fda Mon Sep 17 00:00:00 2001 From: clD11 <23483715+clD11@users.noreply.github.com> Date: Wed, 13 Dec 2023 13:53:55 +0000 Subject: [PATCH] debugging --- libs/clients/radom/instrumented.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libs/clients/radom/instrumented.go b/libs/clients/radom/instrumented.go index ae1cd4c35..80c5bed24 100644 --- a/libs/clients/radom/instrumented.go +++ b/libs/clients/radom/instrumented.go @@ -4,6 +4,7 @@ import ( "context" "time" + "github.com/brave-intl/bat-go/libs/logging" "github.com/prometheus/client_golang/prometheus" ) @@ -24,7 +25,9 @@ func newInstrumentedClient(name string, cl *Client) *InstrumentedClient { }, []string{"instance_name", "method", "result"}, ) - prometheus.MustRegister(v) + if err := prometheus.Register(v); err != nil { + logging.FromContext(context.Background()).Err(err).Msg("radom metric error") + } result := &InstrumentedClient{ name: name,