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

Function ParseNoOptimizations

pkg/traceql/parse.go:33–35  ·  view source on GitHub ↗

ParseNoOptimizations parses a TraceQL query without applying any AST transformations. Use for contexts where only hints or query structure are inspected and not executed, like hint extraction, validation, etc.

(s string)

Source from the content-addressed store, hash-verified

31// ParseNoOptimizations parses a TraceQL query without applying any AST transformations.
32// Use for contexts where only hints or query structure are inspected and not executed, like hint extraction, validation, etc.
33func ParseNoOptimizations(s string) (*RootExpr, error) {
34 return parseInternal(s, []string{TransformationAll}, false)
35}
36
37func parseInternal(s string, skipTransformations []string, allowUnsafeHints bool) (expr *RootExpr, err error) {
38 defer func() {

Callers 15

handleSearchMethod · 0.92
handleInstantQueryMethod · 0.92
handleRangeQueryMethod · 0.92
RoundTripMethod · 0.92
hashForQueryRangeRequestFunction · 0.92
newCombinerFunction · 0.92
hashForSearchRequestFunction · 0.92
validateTraceQLQueryMethod · 0.92
SearchMethod · 0.92
QueryRangeMethod · 0.92

Calls 1

parseInternalFunction · 0.85

Tested by 2

TestStringerFunction · 0.68