MCPcopy
hub / github.com/grafana/tempo / Observe

Method Observe

pkg/traceql/engine_metrics.go:802–809  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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.
802func (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
811func (g *GroupingAggregator[F, S]) ObserveExemplar(span Span, value float64, ts uint64) {
812 if !g.getGroupingValues(span) {

Callers

nothing calls this directly

Calls 3

getGroupingValuesMethod · 0.95
getSeriesMethod · 0.95
ObserveMethod · 0.65

Tested by

no test coverage detected