metrics: rephrase comment

This commit is contained in:
Felix Lange 2024-12-09 23:17:54 +01:00
parent ada0f55f0a
commit 928c8a242a

View file

@ -23,8 +23,10 @@ func Enabled() bool {
// Enable enables the metrics system. // Enable enables the metrics system.
// The Enabled-flag is expected to be set, once, during startup, but toggling off and on // The Enabled-flag is expected to be set, once, during startup, but toggling off and on
// is not supported, // is not supported.
// Enable is not safe to call concurrently. It has no effect if it was already called. //
// 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() { func Enable() {
metricsEnabled = true metricsEnabled = true
} }