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

Function ValidateTraceIDLabelName

modules/generator/validation/fields.go:136–141  ·  view source on GitHub ↗
(traceIDLabelName string)

Source from the content-addressed store, hash-verified

134}
135
136func ValidateTraceIDLabelName(traceIDLabelName string) error {
137 if traceIDLabelName != SanitizeLabelName(traceIDLabelName) {
138 return fmt.Errorf("trace_id_label_name \"%s\" is not a valid Prometheus label name", traceIDLabelName)
139 }
140 return nil
141}
142
143func ValidateHistogramBuckets(buckets []float64, field string) error {
144 for i, bucket := range buckets {

Callers 1

ValidateMethod · 0.92

Calls 1

SanitizeLabelNameFunction · 0.85

Tested by

no test coverage detected