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

Function NewStaticBool

pkg/traceql/ast.go:694–703  ·  view source on GitHub ↗
(b bool)

Source from the content-addressed store, hash-verified

692}
693
694func NewStaticBool(b bool) Static {
695 var val uint64
696 if b {
697 val = 1
698 }
699 return Static{
700 Type: TypeBoolean,
701 valScalar: val,
702 }
703}
704
705func NewStaticDuration(d time.Duration) Static {
706 return Static{

Callers 15

KeepGroupMethod · 0.92
mapSpanAttrFunction · 0.92
mapResourceAttrFunction · 0.92
KeepGroupMethod · 0.92
KeepGroupMethod · 0.92
callbackFunction · 0.92
KeepGroupMethod · 0.92
mapEventAttrFunction · 0.92
mapSpanAttrFunction · 0.92
mapResourceAttrFunction · 0.92

Calls

no outgoing calls