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

Function lookup

pkg/traceql/engine_metrics.go:1224–1232  ·  view source on GitHub ↗
(needles []Attribute, haystack Span)

Source from the content-addressed store, hash-verified

1222}
1223
1224func lookup(needles []Attribute, haystack Span) Static {
1225 for _, n := range needles {
1226 if v, ok := haystack.AttributeFor(n); ok {
1227 return v
1228 }
1229 }
1230
1231 return NewStaticNil()
1232}
1233
1234type MetricsEvaluator struct {
1235 start, end uint64

Callers 2

getSeriesMethod · 0.85
getGroupingValuesMethod · 0.85

Calls 2

NewStaticNilFunction · 0.85
AttributeForMethod · 0.65

Tested by

no test coverage detected