From 3fbc18ea98fe1b81b0eb5eb0e9a75f8c52744ebc Mon Sep 17 00:00:00 2001 From: Daniel Liu Date: Fri, 13 Dec 2024 14:00:11 +0800 Subject: [PATCH] metrics: fix expensive metrics flag processing (#19327) --- metrics/metrics.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/metrics/metrics.go b/metrics/metrics.go index 53c8e81fbed7..bd23e4b24747 100644 --- a/metrics/metrics.go +++ b/metrics/metrics.go @@ -46,7 +46,7 @@ func init() { } } for _, enabler := range expensiveEnablerFlags { - if !Enabled && flag == enabler { + if !EnabledExpensive && flag == enabler { log.Info("Enabling expensive metrics collection") EnabledExpensive = true }