Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/grafana/tempo
/ StartWorkers
Method
StartWorkers
modules/distributor/queue/queue.go:107–113 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
105
}
106
107
func
(m *Queue[T]) StartWorkers() {
108
for
i := 0; i < m.workerCount; i++ {
109
m.wg.Add(1)
110
111
go
m.worker()
112
}
113
}
114
115
// TenantID returns the tenant id.
116
func
(m *Queue[T]) TenantID() string {
Callers
4
createQueueAndStartWorkers
Method · 0.80
newQueueList
Function · 0.80
newStartedQueue
Function · 0.80
TestQueue_Push_QueueGetsProperlyDrainedOnShutdown
Function · 0.80
Calls
2
worker
Method · 0.95
Add
Method · 0.65
Tested by
2
newStartedQueue
Function · 0.64
TestQueue_Push_QueueGetsProperlyDrainedOnShutdown
Function · 0.64