From 59a9e25564e1a35305b24be932bcc4f211f39c04 Mon Sep 17 00:00:00 2001 From: George Robinson Date: Wed, 7 Feb 2024 09:43:03 +0000 Subject: [PATCH] Do not register compat metrics in amtool (#3713) There is no need to register these metrics in amtool, so use compat.NewMetrics(nil) instead of compat.RegisteredMetrics. Signed-off-by: George Robinson Signed-off-by: Gokhan Sari --- cli/root.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/root.go b/cli/root.go index c85a459ee3..424b3aa37a 100644 --- a/cli/root.go +++ b/cli/root.go @@ -61,7 +61,7 @@ func initMatchersCompat(_ *kingpin.ParseContext) error { if err != nil { kingpin.Fatalf("error parsing the feature flag list: %v\n", err) } - compat.InitFromFlags(logger, compat.RegisteredMetrics, featureConfig) + compat.InitFromFlags(logger, compat.NewMetrics(nil), featureConfig) return nil }