MustExtractFetchSpansRequestWithMetadata parses the given traceql query and returns the storage layer conditions. Panics if the query fails to parse.
(query string)
| 301 | // MustExtractFetchSpansRequestWithMetadata parses the given traceql query and returns |
| 302 | // the storage layer conditions. Panics if the query fails to parse. |
| 303 | func 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. |