MCPcopy
hub / github.com/kubernetes/client-go / newDeprecatedRetryMetrics

Function newDeprecatedRetryMetrics

util/workqueue/metrics.go:320–328  ·  view source on GitHub ↗
(name string)

Source from the content-addressed store, hash-verified

318}
319
320func newDeprecatedRetryMetrics(name string) retryMetrics {
321 var ret *defaultRetryMetrics
322 if len(name) == 0 {
323 return ret
324 }
325 return &defaultRetryMetrics{
326 retries: globalMetricsFactory.metricsProvider.NewDeprecatedRetriesMetric(name),
327 }
328}
329
330// SetProvider sets the metrics provider for all subsequently created work
331// queues. Only the first call has an effect.

Callers 2

TestRateLimitingQueueFunction · 0.85
newDelayingQueueFunction · 0.85

Calls 1

Tested by 1

TestRateLimitingQueueFunction · 0.68