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

Method initFinal

pkg/traceql/ast_metrics.go:256–264  ·  view source on GitHub ↗
(q *tempopb.QueryRangeRequest)

Source from the content-addressed store, hash-verified

254}
255
256func (a *MetricsAggregate) initFinal(q *tempopb.QueryRangeRequest) {
257 switch a.op {
258 case metricsAggregateQuantileOverTime:
259 a.seriesAgg = NewHistogramAggregator(q, a.floats, q.Exemplars)
260 default:
261 // These are simple additions by series
262 a.seriesAgg = NewSimpleCombiner(q, a.simpleAggregationOp)
263 }
264}
265
266func (a *MetricsAggregate) observe(span Span) {
267 a.agg.Observe(span)

Callers 1

initMethod · 0.95

Calls 2

NewHistogramAggregatorFunction · 0.85
NewSimpleCombinerFunction · 0.85

Tested by

no test coverage detected