From 928c8a242a2bc1f0c1a4b306a630fc5b986bda13 Mon Sep 17 00:00:00 2001 From: Felix Lange Date: Mon, 9 Dec 2024 23:17:54 +0100 Subject: [PATCH] metrics: rephrase comment --- metrics/metrics.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/metrics/metrics.go b/metrics/metrics.go index c93eab2428..a9d6623173 100644 --- a/metrics/metrics.go +++ b/metrics/metrics.go @@ -23,8 +23,10 @@ func Enabled() bool { // Enable enables the metrics system. // The Enabled-flag is expected to be set, once, during startup, but toggling off and on -// is not supported, -// Enable is not safe to call concurrently. It has no effect if it was already called. +// is not supported. +// +// Enable is not safe to call concurrently. You need to call this as early as possible in +// the program, before any metrics collection will happen. func Enable() { metricsEnabled = true }