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

Method RewriteRoot

pkg/traceql/ast_rewriter.go:72–77  ·  view source on GitHub ↗
(r *RootExpr)

Source from the content-addressed store, hash-verified

70type rewriteChain []ASTRewriter
71
72func (c rewriteChain) RewriteRoot(r *RootExpr) *RootExpr {
73 for _, rw := range c {
74 r = rw.RewriteRoot(r)
75 }
76 return r
77}
78
79// newBinaryOpToArrayOpRewriter creates a ASTRewriter that rewrites certain BinaryOperation expressions to
80// equivalent array operations in the TraceQL AST. It handles the following cases:

Callers 1

ApplyASTRewritesFunction · 0.95

Calls 1

RewriteRootMethod · 0.65

Tested by

no test coverage detected