Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/grafana/tempo
/ Clusters
Method
Clusters
pkg/drain/drain.go:62–64 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
60
}
61
62
func
(d *Drain) Clusters() []*LogCluster {
63
return
slices.Collect(d.idToCluster.Values())
64
}
65
66
func
(d *Drain) Train(content string) *LogCluster {
67
d.tokenBuffer = d.tokenizer.Tokenize(content, d.tokenBuffer)
Callers
4
TestDrain_PruneTreeClearsOldBranches
Function · 0.80
TestDrain_Train_MultipleClusters
Function · 0.80
TestDrain_Train_CacheEvictionIntegration
Function · 0.80
main
Function · 0.80
Calls
2
Collect
Method · 0.65
Values
Method · 0.45
Tested by
3
TestDrain_PruneTreeClearsOldBranches
Function · 0.64
TestDrain_Train_MultipleClusters
Function · 0.64
TestDrain_Train_CacheEvictionIntegration
Function · 0.64