Skip to content

Commit

Permalink
debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
clD11 committed Dec 13, 2023
1 parent 11022f1 commit 6f9057d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion libs/clients/radom/instrumented.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"context"
"time"

"github.com/brave-intl/bat-go/libs/logging"
"github.com/prometheus/client_golang/prometheus"
)

Expand All @@ -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,
Expand Down

0 comments on commit 6f9057d

Please sign in to comment.