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

Method RegisterFlagsAndApplyDefaults

tempodb/backend/gcs/config.go:24–32  ·  view source on GitHub ↗
(prefix string, f *flag.FlagSet)

Source from the content-addressed store, hash-verified

22}
23
24func (cfg *Config) RegisterFlagsAndApplyDefaults(prefix string, f *flag.FlagSet) {
25 f.StringVar(&cfg.BucketName, util.PrefixConfig(prefix, "gcs.bucket"), "", "gcs bucket to store traces in.")
26 f.StringVar(&cfg.Prefix, util.PrefixConfig(prefix, "gcs.prefix"), "", "gcs bucket prefix to store traces in.")
27 f.IntVar(&cfg.ListBlocksConcurrency, util.PrefixConfig(prefix, "gcs.list_blocks_concurrency"), 3, "number of concurrent list calls to make to backend")
28 f.IntVar(&cfg.MaxRetries, util.PrefixConfig(prefix, "gcs.max_retries"), 3, "number of times to retry failed compaction/retention operations")
29
30 cfg.ChunkBufferSize = 10 * 1024 * 1024
31 cfg.HedgeRequestsUpTo = 2
32}
33
34func (cfg *Config) PathMatches(other *Config) bool {
35 // GCS bucket names are globally unique

Callers

nothing calls this directly

Calls 1

PrefixConfigFunction · 0.92

Tested by

no test coverage detected