mirror of
https://github.com/kubernetes/client-go.git
synced 2025-09-06 09:30:56 +00:00
Document when workqueue metrics are dropped
Two simple choices for workqueues do not document that they do not emit metrics. Using their named variants fixes this, but was undocumented. Change-Id: I100ad08a4859513987941ed35d12abb4cbb39873 Kubernetes-commit: f468bee672b0ccf9b97a85f17ec1f5645aced926
This commit is contained in:
committed by
Kubernetes Publisher
parent
056a9de353
commit
5a537879c2
@@ -33,7 +33,9 @@ type DelayingInterface interface {
|
||||
AddAfter(item interface{}, duration time.Duration)
|
||||
}
|
||||
|
||||
// NewDelayingQueue constructs a new workqueue with delayed queuing ability
|
||||
// NewDelayingQueue constructs a new workqueue with delayed queuing ability.
|
||||
// NewDelayingQueue does not emit metrics. For use with a MetricsProvider, please use
|
||||
// NewNamedDelayingQueue instead.
|
||||
func NewDelayingQueue() DelayingInterface {
|
||||
return NewDelayingQueueWithCustomClock(clock.RealClock{}, "")
|
||||
}
|
||||
|
Reference in New Issue
Block a user