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

Function ValidateHostInfoHostIdentifiers

modules/generator/validation/fields.go:98–103  ·  view source on GitHub ↗
(hostIdentifiers []string)

Source from the content-addressed store, hash-verified

96}
97
98func ValidateHostInfoHostIdentifiers(hostIdentifiers []string) error {
99 if len(hostIdentifiers) == 0 {
100 return errors.New("at least one value must be provided in host_identifiers")
101 }
102 return nil
103}
104
105func ValidateHostInfoMetricName(metricName string) error {
106 if !model.UTF8Validation.IsValidLabelName(metricName) {

Callers 1

ValidateMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected