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

Function NewStaticDuration

pkg/traceql/ast.go:705–710  ·  view source on GitHub ↗
(d time.Duration)

Source from the content-addressed store, hash-verified

703}
704
705func NewStaticDuration(d time.Duration) Static {
706 return Static{
707 Type: TypeDuration,
708 valScalar: uint64(d),
709 }
710}
711
712func NewStaticStatus(s Status) Static {
713 return Static{

Callers 15

mapSpanAttrFunction · 0.92
mapTraceAttrFunction · 0.92
KeepGroupMethod · 0.92
KeepGroupMethod · 0.92
KeepGroupMethod · 0.92
flattenForSelectAllFunction · 0.92
mapSpanAttrFunction · 0.92
mapTraceAttrFunction · 0.92
KeepGroupMethod · 0.92
KeepGroupMethod · 0.92
KeepGroupMethod · 0.92

Calls

no outgoing calls

Tested by 15

flattenForSelectAllFunction · 0.74
flattenForSelectAllFunction · 0.74
TestPipelinesFunction · 0.68
TestSpansetFilterStaticsFunction · 0.68
TestScalarFilterEvaluateFunction · 0.68
TestSpansetExistenceFunction · 0.68
BenchmarkBinOpFunction · 0.68