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

Function ValidateNativeHistogramBucketFactor

modules/generator/validation/fields.go:152–157  ·  view source on GitHub ↗
(factor float64)

Source from the content-addressed store, hash-verified

150}
151
152func ValidateNativeHistogramBucketFactor(factor float64) error {
153 if factor <= 1 {
154 return fmt.Errorf("metrics_generator.native_histogram_bucket_factor must be greater than 1")
155 }
156 return nil
157}
158
159func ValidateCostAttributionDimensions(dimensions map[string]string) error {
160 seenLabels := make(map[string]string)

Callers 2

ValidateMethod · 0.92
ValidateMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected