(prefix string, f *flag.FlagSet)
| 22 | } |
| 23 | |
| 24 | func (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 | |
| 34 | func (cfg *Config) PathMatches(other *Config) bool { |
| 35 | // GCS bucket names are globally unique |
nothing calls this directly
no test coverage detected