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

Method Int

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

Source from the content-addressed store, hash-verified

966}
967
968func (s Static) Int() (int, bool) {
969 if s.Type != TypeInt {
970 return 0, false
971 }
972 return int(s.valScalar), true
973}
974
975func (s Static) Float() float64 {
976 switch s.Type {

Callers 15

AsAnyValueMethod · 0.95
appendMethod · 0.95
EncodeToStringMethod · 0.95
testCompleteBlockFunction · 0.80
FindMethod · 0.80
testAppendBlockStartEndFunction · 0.80
testIngestionSlackFunction · 0.80
runWALTestWithAppendModeFunction · 0.80
createIntPredicateFunction · 0.80
createIntPredicateFunction · 0.80

Calls

no outgoing calls

Tested by 14

testCompleteBlockFunction · 0.64
testAppendBlockStartEndFunction · 0.64
testIngestionSlackFunction · 0.64
runWALTestWithAppendModeFunction · 0.64
TestReadWriteFunction · 0.64
TestAttachExemplarsFunction · 0.64
setupDependenciesFunction · 0.64
HealthyInstancesCountMethod · 0.64
testCacheMissFunction · 0.64
TestCombineFunction · 0.64