MCPcopy Create free account
hub / github.com/cortexproject/cortex / spansPromProtoToSpansProto

Function spansPromProtoToSpansProto

pkg/cortexpb/histograms.go:157–164  ·  view source on GitHub ↗
(s []prompb.BucketSpan)

Source from the content-addressed store, hash-verified

155}
156
157func spansPromProtoToSpansProto(s []prompb.BucketSpan) []BucketSpan {
158 spans := make([]BucketSpan, len(s))
159 for i := range s {
160 spans[i] = BucketSpan{Offset: s[i].Offset, Length: s[i].Length}
161 }
162
163 return spans
164}
165
166func (h Histogram) BucketCount() int {
167 count := 0

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected