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

Function newStartedQueue

modules/distributor/queue/queue_test.go:37–42  ·  view source on GitHub ↗
(t *testing.T, size, workerCount int, processFunc ProcessFunc[T])

Source from the content-addressed store, hash-verified

35}
36
37func newStartedQueue[T any](t *testing.T, size, workerCount int, processFunc ProcessFunc[T]) *Queue[T] {
38 q := newQueue(t, size, workerCount, processFunc)
39 q.StartWorkers()
40
41 return q
42}
43
44func getCounterValue(metric *prometheus.CounterVec) float64 {
45 m := &dto.Metric{}

Calls 2

newQueueFunction · 0.85
StartWorkersMethod · 0.80

Tested by

no test coverage detected