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

Method AddFetchedSamples

pkg/querier/stats/stats.go:183–189  ·  view source on GitHub ↗
(count uint64)

Source from the content-addressed store, hash-verified

181}
182
183func (s *QueryStats) AddFetchedSamples(count uint64) {
184 if s == nil {
185 return
186 }
187
188 atomic.AddUint64(&s.FetchedSamplesCount, count)
189}
190
191func (s *QueryStats) LoadFetchedSamples() uint64 {
192 if s == nil {

Callers 6

TestStats_MergeFunction · 0.95
MergeMethod · 0.95
queryIngesterStreamMethod · 0.80
fetchSeriesFromStoresMethod · 0.80

Calls

no outgoing calls

Tested by 3

TestStats_MergeFunction · 0.76