From c585810766ccada5ff2928240535c283d042ee39 Mon Sep 17 00:00:00 2001 From: Bruce Riley Date: Fri, 27 Jan 2023 19:45:32 +0000 Subject: [PATCH] Node: Initialize scissors metrics Change-Id: I018a663aa5b9ea902f934ab71c23b1786c8aeeb0 --- node/pkg/common/scissors.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/node/pkg/common/scissors.go b/node/pkg/common/scissors.go index f543d14e1..5361e2275 100644 --- a/node/pkg/common/scissors.go +++ b/node/pkg/common/scissors.go @@ -20,6 +20,7 @@ var ( // Start a go routine with recovering from any panic by sending an error to a error channel func RunWithScissors(ctx context.Context, errC chan error, name string, runnable supervisor.Runnable) { go func() { + ScissorsErrors.WithLabelValues("scissors", name).Add(0) defer func() { if r := recover(); r != nil { switch x := r.(type) { @@ -41,6 +42,7 @@ func RunWithScissors(ctx context.Context, errC chan error, name string, runnable func WrapWithScissors(runnable supervisor.Runnable, name string) supervisor.Runnable { return func(ctx context.Context) (result error) { + ScissorsErrors.WithLabelValues("scissors", name).Add(0) defer func() { if r := recover(); r != nil { switch x := r.(type) {