Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
968
func
(s Static) Int() (int, bool) {
969
if
s.Type != TypeInt {
970
return
0, false
971
}
972
return
int(s.valScalar), true
973
}
974
975
func
(s Static) Float() float64 {
976
switch
s.Type {
Callers
15
AsAnyValue
Method · 0.95
append
Method · 0.95
EncodeToString
Method · 0.95
TestSearchCompactedBlocks
Function · 0.80
testCompleteBlock
Function · 0.80
Find
Method · 0.80
testAppendBlockStartEnd
Function · 0.80
testIngestionSlack
Function · 0.80
runWALTestWithAppendMode
Function · 0.80
runWALBenchmarkWithAppendMode
Function · 0.80
createIntPredicate
Function · 0.80
createIntPredicate
Function · 0.80
Calls
no outgoing calls
Tested by
14
TestSearchCompactedBlocks
Function · 0.64
testCompleteBlock
Function · 0.64
testAppendBlockStartEnd
Function · 0.64
testIngestionSlack
Function · 0.64
runWALTestWithAppendMode
Function · 0.64
runWALBenchmarkWithAppendMode
Function · 0.64
TestReadWrite
Function · 0.64
TestAttachExemplars
Function · 0.64
setupDependencies
Function · 0.64
HealthyInstancesCount
Method · 0.64
testCacheMiss
Function · 0.64
TestCombine
Function · 0.64