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

Function WithUnsafeHints

pkg/traceql/options.go:35–39  ·  view source on GitHub ↗

WithUnsafeHints controls whether the unsafe query hint [HintSkipASTTransformations] is honored during parsing. This does not affect other unsafe hints, which are read after parsing by the caller.

(v bool)

Source from the content-addressed store, hash-verified

33// is honored during parsing. This does not affect other unsafe hints, which are read
34// after parsing by the caller.
35func WithUnsafeHints(v bool) CompileOption {
36 return func(o *compileOptions) {
37 o.allowUnsafeHints = v
38 }
39}
40
41// WithSpanOnlyFetch sets whether to use the span-only fetch path. When not set the default is used, and
42// this may be overridden by the query hint.

Callers 9

setTraceQLWeightMethod · 0.92
SearchMethod · 0.92
QueryRangeMethod · 0.92
SearchBlockMethod · 0.92
queryBlockMethod · 0.92
TestParseRewritesFunction · 0.85

Calls

no outgoing calls