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

Function expectedSeriesLen

modules/generator/registry/native_histogram_test.go:593–599  ·  view source on GitHub ↗
(samples []sample)

Source from the content-addressed store, hash-verified

591}
592
593func expectedSeriesLen(samples []sample) int {
594 series := make(map[string]struct{})
595 for _, s := range samples {
596 series[s.l.String()] = struct{}{}
597 }
598 return len(series)
599}
600
601// expectedBaseSeriesCount returns the number of distinct base labelsets in the
602// expected classic samples by collapsing away metric name and bucket labels.

Callers 1

Test_HistogramsFunction · 0.85

Calls 1

StringMethod · 0.45

Tested by

no test coverage detected