mirror of
https://github.com/hanzoai/traces.git
synced 2026-10-30 18:20:41 +00:00
* 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
20 lines
393 B
Go
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
|
|
}
|