Observe the span by looking up its group-by attributes, mapping to the series, and passing to the inner aggregate. This is a critical hot path.
(span Span)
| 800 | // Observe the span by looking up its group-by attributes, mapping to the series, |
| 801 | // and passing to the inner aggregate. This is a critical hot path. |
| 802 | func (g *GroupingAggregator[F, S]) Observe(span Span) { |
| 803 | if !g.getGroupingValues(span) { |
| 804 | return |
| 805 | } |
| 806 | |
| 807 | s := g.getSeries() |
| 808 | s.agg.Observe(span) |
| 809 | } |
| 810 | |
| 811 | func (g *GroupingAggregator[F, S]) ObserveExemplar(span Span, value float64, ts uint64) { |
| 812 | if !g.getGroupingValues(span) { |
nothing calls this directly
no test coverage detected