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

Method validate

pkg/traceql/ast_validate.go:139–149  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

137}
138
139func (o SpansetOperation) validate() error {
140 if err := o.LHS.validate(); err != nil {
141 return err
142 }
143
144 if o.Op == OpNotExists || o.Op == OpExists {
145 return fmt.Errorf("illegal operation for the given type: %s", o.String())
146 }
147
148 return o.RHS.validate()
149}
150
151func (f SpansetFilter) validate() error {
152 if err := f.Expression.validate(); err != nil {

Callers

nothing calls this directly

Calls 2

StringMethod · 0.95
validateMethod · 0.65

Tested by

no test coverage detected