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

Function MustExtractFetchSpansRequestWithMetadata

pkg/traceql/storage.go:303–311  ·  view source on GitHub ↗

MustExtractFetchSpansRequestWithMetadata parses the given traceql query and returns the storage layer conditions. Panics if the query fails to parse.

(query string)

Source from the content-addressed store, hash-verified

301// MustExtractFetchSpansRequestWithMetadata parses the given traceql query and returns
302// the storage layer conditions. Panics if the query fails to parse.
303func MustExtractFetchSpansRequestWithMetadata(query string) FetchSpansRequest {
304 c, err := ExtractFetchSpansRequest(query)
305 if err != nil {
306 panic(err)
307 }
308 c.SecondPass = func(s *Spanset) ([]*Spanset, error) { return []*Spanset{s}, nil }
309 c.SecondPassConditions = SearchMetaConditions()
310 return c
311}
312
313// ExtractFetchSpansRequest parses the given traceql query and returns
314// the storage layer conditions. Returns an error if the query fails to parse.

Calls 2

ExtractFetchSpansRequestFunction · 0.85
SearchMetaConditionsFunction · 0.85