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

Function IsSearchBlock

pkg/api/search.go:11–15  ·  view source on GitHub ↗

IsSearchBlock returns true if the request appears to be for backend blocks. It is not exhaustive and only looks for blockID

(r *http.Request)

Source from the content-addressed store, hash-verified

9// IsSearchBlock returns true if the request appears to be for backend blocks. It is not exhaustive
10// and only looks for blockID
11func 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.
18func IsTraceQLQuery(r *tempopb.SearchRequest) bool {

Callers 6

SearchHandlerMethod · 0.92
SearchTagsHandlerMethod · 0.92
SearchTagsV2HandlerMethod · 0.92
TestIsSearchBlockFunction · 0.85

Calls 2

QueryMethod · 0.80
GetMethod · 0.65

Tested by 1

TestIsSearchBlockFunction · 0.68