Files
Koenraad VerheydenandGitHub a46e4da14d Add RegisterFlagsAndApplyDefault function to every backend config (#2791)
* Add RegisterFlagsAndApplyDefault function to every backend config

* Set defaults in user-configurable overrides module

* Move out `trace` prefix

* Linting: consistent receiver names

* Update manifest.md
2023-08-24 15:10:19 +02:00

20 lines
393 B
Go

package local
import (
"flag"
"github.com/grafana/tempo/pkg/util"
)
type Config struct {
Path string `yaml:"path"`
}
func (cfg *Config) RegisterFlagsAndApplyDefaults(prefix string, f *flag.FlagSet) {
f.StringVar(&cfg.Path, util.PrefixConfig(prefix, "local.path"), "", "path to store traces at.")
}
func (cfg *Config) PathMatches(other *Config) bool {
return cfg.Path == other.Path
}