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

Method Duration

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

Source from the content-addressed store, hash-verified

990}
991
992func (s Static) Duration() (time.Duration, bool) {
993 if s.Type != TypeDuration {
994 return 0, false
995 }
996 return time.Duration(s.valScalar), true
997}
998
999func (s Static) Status() (Status, bool) {
1000 if s.Type != TypeStatus {

Callers 15

AsAnyValueMethod · 0.95
EncodeToStringMethod · 0.95
mapSpanAttrFunction · 0.80
mapTraceAttrFunction · 0.80
createIntPredicateFunction · 0.80
KeepGroupMethod · 0.80
KeepGroupMethod · 0.80
KeepGroupMethod · 0.80
flattenForSelectAllFunction · 0.80
mapSpanAttrFunction · 0.80
mapTraceAttrFunction · 0.80

Calls

no outgoing calls

Tested by 15

flattenForSelectAllFunction · 0.64
flattenForSelectAllFunction · 0.64
TestGoingHamFunction · 0.64
callQueryRangeFunction · 0.64
remoteWriteConfigMethod · 0.64
TestExemplarsForBlockFunction · 0.64
FuzzExemplarsForBlockFunction · 0.64