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

Method RegisterFlags

modules/livestore/client/client.go:36–43  ·  view source on GitHub ↗

RegisterFlags registers flags.

(f *flag.FlagSet)

Source from the content-addressed store, hash-verified

34
35// RegisterFlags registers flags.
36func (cfg *Config) RegisterFlags(f *flag.FlagSet) {
37 cfg.GRPCClientConfig.RegisterFlagsWithPrefix("livestore.client", f)
38
39 f.DurationVar(&cfg.PoolConfig.HealthCheckTimeout, "livestore.client.healthcheck-timeout", 1*time.Second, "Timeout for healthcheck rpcs.")
40 f.DurationVar(&cfg.PoolConfig.CheckInterval, "livestore.client.healthcheck-interval", 15*time.Second, "Interval to healthcheck livestores")
41 f.BoolVar(&cfg.PoolConfig.HealthCheckEnabled, "livestore.client.healthcheck-enabled", true, "Healthcheck livestores.")
42 f.DurationVar(&cfg.RemoteTimeout, "livestore.client.timeout", 5*time.Second, "Timeout for livestore client RPCs.")
43}
44
45// New returns a new livestore client.
46func New(addr string, cfg Config) (*Client, error) {

Callers 1

Calls 1

Tested by

no test coverage detected