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

Method ObserveExemplar

pkg/traceql/engine_metrics.go:908–915  ·  view source on GitHub ↗
(span Span, value float64, ts uint64)

Source from the content-addressed store, hash-verified

906}
907
908func (u *UngroupedAggregator) ObserveExemplar(span Span, value float64, ts uint64) {
909 all := span.AllAttributes()
910 lbls := make(Labels, 0, len(all))
911 for k, v := range all {
912 lbls = append(lbls, Label{k.String(), v})
913 }
914 u.innerAgg.ObserveExemplar(value, ts, lbls)
915}
916
917func (u *UngroupedAggregator) Length() int {
918 return 0

Callers

nothing calls this directly

Calls 3

AllAttributesMethod · 0.65
ObserveExemplarMethod · 0.65
StringMethod · 0.45

Tested by

no test coverage detected