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

Method extractConditions

pkg/traceql/ast.go:199–215  ·  view source on GitHub ↗
(req *FetchSpansRequest)

Source from the content-addressed store, hash-verified

197}
198
199func (p Pipeline) extractConditions(req *FetchSpansRequest) {
200 forceSecondPass := false
201
202 for _, element := range p.Elements {
203 if forceSecondPass {
204 extractToSecondPass(req, element)
205 } else {
206 element.extractConditions(req)
207 }
208
209 // If we just processed a select operation,
210 // then switch all remaining elements to the second pass.
211 if _, ok := element.(SelectOperation); ok {
212 forceSecondPass = true
213 }
214 }
215}
216
217func extractToSecondPass(req *FetchSpansRequest, element PipelineElement) {
218 req2 := &FetchSpansRequest{}

Callers

nothing calls this directly

Calls 2

extractToSecondPassFunction · 0.85
extractConditionsMethod · 0.65

Tested by

no test coverage detected