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

Function ValidateHistogramMode

modules/generator/validation/fields.go:91–96  ·  view source on GitHub ↗
(mode string)

Source from the content-addressed store, hash-verified

89}
90
91func ValidateHistogramMode(mode string) error {
92 if _, ok := SupportedHistogramModesSet[mode]; !ok {
93 return fmt.Errorf("metrics_generator.generate_native_histograms \"%s\" is not a valid value, valid values: classic, native, both", mode)
94 }
95 return nil
96}
97
98func ValidateHostInfoHostIdentifiers(hostIdentifiers []string) error {
99 if len(hostIdentifiers) == 0 {

Callers 2

ValidateMethod · 0.92
ValidateMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected