IsSearchBlock returns true if the request appears to be for backend blocks. It is not exhaustive and only looks for blockID
(r *http.Request)
| 9 | // IsSearchBlock returns true if the request appears to be for backend blocks. It is not exhaustive |
| 10 | // and only looks for blockID |
| 11 | func IsSearchBlock(r *http.Request) bool { |
| 12 | q := r.URL.Query() |
| 13 | |
| 14 | return q.Get(urlParamBlockID) != "" |
| 15 | } |
| 16 | |
| 17 | // IsTraceQLQuery returns true if the request contains a traceQL query. |
| 18 | func IsTraceQLQuery(r *tempopb.SearchRequest) bool { |