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

Method LoadExtraFields

pkg/querier/stats/stats.go:127–141  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

125}
126
127func (s *QueryStats) LoadExtraFields() []any {
128 if s == nil {
129 return []any{}
130 }
131
132 s.m.Lock()
133 defer s.m.Unlock()
134
135 r := make([]any, 0, len(s.ExtraFields))
136 for k, v := range s.ExtraFields {
137 r = append(r, k, v)
138 }
139
140 return r
141}
142
143func (s *QueryStats) LoadFetchedSeries() uint64 {
144 if s == nil {

Callers 5

TestStats_MergeFunction · 0.95
reportQueryStatsMethod · 0.80
MergeMethod · 0.80

Calls

no outgoing calls

Tested by 2

TestStats_MergeFunction · 0.76