MCPcopy
hub / github.com/prometheus/prometheus / ExpandChunks

Function ExpandChunks

storage/series.go:501–507  ·  view source on GitHub ↗

ExpandChunks iterates over all chunks in the iterator, buffering all in slice.

(iter chunks.Iterator)

Source from the content-addressed store, hash-verified

499
500// ExpandChunks iterates over all chunks in the iterator, buffering all in slice.
501func ExpandChunks(iter chunks.Iterator) ([]chunks.Meta, error) {
502 var result []chunks.Meta
503 for iter.Next() {
504 result = append(result, iter.At())
505 }
506 return result, iter.Err()
507}

Calls 3

NextMethod · 0.65
AtMethod · 0.65
ErrMethod · 0.65

Used in the wild real call sites across dependent graphs

searching dependent graphs…