MCPcopy Create free account
hub / github.com/TheThingsNetwork/lorawan-stack / registerWorkDequeued

Function registerWorkDequeued

pkg/workerpool/observability.go:158–161  ·  view source on GitHub ↗
(name string, start time.Time)

Source from the content-addressed store, hash-verified

156}
157
158func registerWorkDequeued(name string, start time.Time) {
159 poolMetrics.workQueueSize.WithLabelValues(name).Dec()
160 poolMetrics.queueLatency.WithLabelValues(name).Observe(time.Since(start).Seconds())
161}
162
163func registerWorkProcessed(ctx context.Context, name string) {
164 poolMetrics.workProcessed.WithLabelValues(ctx, name).Inc()

Callers 1

workerBodyMethod · 0.85

Calls 1

WithLabelValuesMethod · 0.45

Tested by

no test coverage detected