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

Function runTraceQLMetric

pkg/traceql/engine_metrics_test.go:2970–2979  ·  view source on GitHub ↗
(req *tempopb.QueryRangeRequest, inSpans ...[]Span)

Source from the content-addressed store, hash-verified

2968}
2969
2970func runTraceQLMetric(req *tempopb.QueryRangeRequest, inSpans ...[]Span) (SeriesSet, int, error) {
2971 res, err := processLayer1AndLayer2(req, inSpans...)
2972 if err != nil {
2973 return nil, 0, err
2974 }
2975
2976 // Pass layer 2 to layer 3
2977 // These are summed counts over time by bucket
2978 return processLayer3(req, res)
2979}
2980
2981func processLayer1AndLayer2(req *tempopb.QueryRangeRequest, in ...[]Span) (SeriesSet, error) {
2982 e := NewEngine()

Calls 2

processLayer1AndLayer2Function · 0.85
processLayer3Function · 0.85

Tested by

no test coverage detected