()
| 271 | } |
| 272 | |
| 273 | func (a *labelAggregator) listMetrics() []annotatedMetric { |
| 274 | var out []annotatedMetric |
| 275 | for _, am := range a.metrics { |
| 276 | out = append(out, am) |
| 277 | } |
| 278 | return out |
| 279 | } |
| 280 | |
| 281 | func (ma *MetricsAggregator) Run(ctx context.Context) func() { |
| 282 | ctx, cancelFunc := context.WithCancel(ctx) |