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

Function unaryOp

pkg/traceql/ast_stringer.go:233–243  ·  view source on GitHub ↗
(op Operator, e Element)

Source from the content-addressed store, hash-verified

231}
232
233func unaryOp(op Operator, e Element) string {
234 if op == OpExists {
235 return wrapElement(e) + " != nil"
236 }
237
238 if op == OpNotExists {
239 return wrapElement(e) + " = nil"
240 }
241
242 return op.String() + wrapElement(e)
243}
244
245func wrapElement(e Element) string {
246 static, ok := e.(Static)

Callers 1

StringMethod · 0.85

Calls 2

wrapElementFunction · 0.85
StringMethod · 0.45

Tested by

no test coverage detected