(size int)
| 230 | } |
| 231 | |
| 232 | func newLabelAggregator(size int) *labelAggregator { |
| 233 | return &labelAggregator{ |
| 234 | aggregations: make(map[string]float64, size), |
| 235 | metrics: make(map[string]annotatedMetric, size), |
| 236 | } |
| 237 | } |
| 238 | |
| 239 | func (a *labelAggregator) aggregate(am annotatedMetric, labels []string) error { |
| 240 | // Use a LabelSet because it can give deterministic fingerprints of label combinations regardless of map ordering. |