exemplarAttribute captures a closure around the attribute so it doesn't have to be passed along with every span. should be more efficient.
(a Attribute)
| 240 | // exemplarAttribute captures a closure around the attribute so it doesn't have to be passed along with every span. |
| 241 | // should be more efficient. |
| 242 | func exemplarAttribute(a Attribute) func(Span) (float64, uint64) { |
| 243 | return func(s Span) (float64, uint64) { |
| 244 | v, _ := FloatizeAttribute(s, a) |
| 245 | t := s.StartTimeUnixNanos() / uint64(time.Millisecond) |
| 246 | return v, t |
| 247 | } |
| 248 | } |
| 249 | |
| 250 | func (a *MetricsAggregate) initSum(q *tempopb.QueryRangeRequest) { |
| 251 | // Currently all metrics are summed by job to produce |
no test coverage detected