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

Function newOverridesValidator

cmd/tempo/app/overrides_validation.go:81–92  ·  view source on GitHub ↗

newOverridesValidator validates user-configurable overrides

(cfg *Config)

Source from the content-addressed store, hash-verified

79
80// newOverridesValidator validates user-configurable overrides
81func newOverridesValidator(cfg *Config) api.Validator {
82 validForwarders := map[string]struct{}{}
83 for _, f := range cfg.Distributor.Forwarders {
84 validForwarders[f.Name] = struct{}{}
85 }
86
87 return &overridesValidator{
88 cfg: cfg,
89
90 validForwarders: validForwarders,
91 }
92}
93
94// Validate validates user-configurable overrides
95func (v *overridesValidator) Validate(limits *client.Limits) error {

Callers 2

initOverridesAPIMethod · 0.85
Test_overridesValidatorFunction · 0.85

Calls

no outgoing calls

Tested by 1

Test_overridesValidatorFunction · 0.68