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

Method Validate

modules/generator/config.go:163–176  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

161}
162
163func (cfg *ProcessorConfig) Validate() error {
164 var errs []error
165 if err := validation.ValidateHostInfoHostIdentifiers(cfg.HostInfo.HostIdentifiers); err != nil {
166 errs = append(errs, err)
167 }
168 if err := validation.ValidateHostInfoMetricName(cfg.HostInfo.MetricName); err != nil {
169 errs = append(errs, err)
170 }
171
172 if len(errs) > 0 {
173 return multierr.Combine(errs...)
174 }
175 return nil
176}
177
178// copyWithOverrides creates a copy of the config using values set in the overrides.
179func (cfg *ProcessorConfig) copyWithOverrides(o metricsGeneratorOverrides, userID string) (ProcessorConfig, error) {

Callers

nothing calls this directly

Calls 3

CombineMethod · 0.65

Tested by

no test coverage detected