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

Method Bool

pkg/traceql/ast.go:988–990  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

986}
987
988func (s Static) Bool() (bool, bool) {
989 return s.valScalar != 0, s.Type == TypeBoolean
990}
991
992func (s Static) Duration() (time.Duration, bool) {
993 if s.Type != TypeDuration {

Callers 15

AsAnyValueMethod · 0.95
appendMethod · 0.95
EncodeToStringMethod · 0.95
createBoolPredicateFunction · 0.80
createBoolPredicateFunction · 0.80
createBoolPredicateFunction · 0.80
cutOneInstanceToWalMethod · 0.80
SearchTagValuesV2Method · 0.80
FindTraceByIDMethod · 0.80
SearchHandlerMethod · 0.80

Calls

no outgoing calls

Tested by 1

TestStatic_BoolFunction · 0.64