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

Struct MetricsCompare

pkg/traceql/engine_metrics_compare.go:31–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29)
30
31type MetricsCompare struct {
32 f *SpansetFilter
33 intervalMapper IntervalMapper
34 start, end int
35 topN int
36 baselines map[Attribute]map[StaticMapKey]*staticWithCounts
37 selections map[Attribute]map[StaticMapKey]*staticWithCounts
38 baselineTotals map[Attribute][]float64
39 selectionTotals map[Attribute][]float64
40 baselineExemplars []Exemplar
41 selectionExemplars []Exemplar
42 seriesAgg SeriesAggregator
43 maxExemplars uint32
44
45 // Runtime fields to avoid allocating closures
46 // and escaping to the heap when we call span.AllAttributesFunc.
47 dest map[Attribute]map[StaticMapKey]*staticWithCounts
48 destTotals map[Attribute][]float64
49 interval int
50 attrCallback func(Attribute, Static)
51}
52
53type staticWithCounts struct {
54 val Static

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected