MCPcopy
hub / github.com/grafana/tempo / RegisterFlagsAndApplyDefaults

Method RegisterFlagsAndApplyDefaults

pkg/usagestats/config.go:17–21  ·  view source on GitHub ↗

RegisterFlags adds the flags required to config this to the given FlagSet

(prefix string, f *flag.FlagSet)

Source from the content-addressed store, hash-verified

15
16// RegisterFlags adds the flags required to config this to the given FlagSet
17func (cfg *Config) RegisterFlagsAndApplyDefaults(prefix string, f *flag.FlagSet) {
18 f.BoolVar(&cfg.Enabled, util.PrefixConfig(prefix, "enabled"), true, "Enable anonymous usage reporting.")
19 cfg.Backoff.RegisterFlagsWithPrefix(prefix, f)
20 cfg.Backoff.MaxRetries = 0
21}

Callers

nothing calls this directly

Calls 2

PrefixConfigFunction · 0.92

Tested by

no test coverage detected