| 29 | ) |
| 30 | |
| 31 | type 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 | |
| 53 | type staticWithCounts struct { |
| 54 | val Static |
nothing calls this directly
no outgoing calls
no test coverage detected