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