(req *FetchSpansRequest)
| 197 | } |
| 198 | |
| 199 | func (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 | |
| 217 | func extractToSecondPass(req *FetchSpansRequest, element PipelineElement) { |
| 218 | req2 := &FetchSpansRequest{} |
nothing calls this directly
no test coverage detected