MCPcopy
hub / github.com/uber/aresdb / reportBatch

Method reportBatch

query/stats.go:234–255  ·  view source on GitHub ↗

reportBatch will report OOPK batch related stats to the query logger.

(isArchiveBatch bool)

Source from the content-addressed store, hash-verified

232
233// reportBatch will report OOPK batch related stats to the query logger.
234func (qc *AQLQueryContext) reportBatch(isArchiveBatch bool) {
235 if qc.Debug {
236 batchType := "live batch"
237 if isArchiveBatch {
238 batchType = "archive batch"
239 }
240 stats := qc.OOPK.currentBatch.stats
241 utils.GetQueryLogger().
242 With(
243 "timings", stats.timings,
244 "total", stats.totalTiming,
245 "batchID", stats.batchID,
246 "batchSize", stats.batchSize,
247 "batchType", batchType,
248 ).Infof("Query stats")
249 if isArchiveBatch {
250 qc.OOPK.ArchiveBatchStats.applyBatchStats(stats)
251 } else {
252 qc.OOPK.LiveBatchStats.applyBatchStats(stats)
253 }
254 }
255}

Callers 3

postExecMethod · 0.80
stats_test.goFile · 0.80
postExecMethod · 0.80

Calls 4

GetQueryLoggerFunction · 0.92
applyBatchStatsMethod · 0.80
InfofMethod · 0.65
WithMethod · 0.65

Tested by

no test coverage detected