MCPcopy
hub / github.com/grafana/tempo / BaselineAggregator

Struct BaselineAggregator

pkg/traceql/engine_metrics_compare.go:352–361  ·  view source on GitHub ↗

BaselineAggregator is a special series combiner for the compare() function. It resplits job-level results into baseline and selection buffers, and if an attribute reached max cardinality at the job-level, it will be marked as such at the query-level.

Source from the content-addressed store, hash-verified

350// an attribute reached max cardinality at the job-level, it will be marked
351// as such at the query-level.
352type BaselineAggregator struct {
353 topN int
354 intervalMapper IntervalMapper
355 baseline map[string]map[StaticMapKey]staticWithTimeSeries
356 selection map[string]map[StaticMapKey]staticWithTimeSeries
357 baselineTotals map[string]map[StaticMapKey]staticWithTimeSeries
358 selectionTotals map[string]map[StaticMapKey]staticWithTimeSeries
359 maxed map[string]struct{}
360 exemplarBuckets bucketSet
361}
362
363type staticWithTimeSeries struct {
364 val Static

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected