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

Function Register

tools/metrics/metrics.go:48–53  ·  view source on GitHub ↗

Register registers metrics for the rest client to use. This can only be called once.

(lm LatencyMetric, rm ResultMetric)

Source from the content-addressed store, hash-verified

46// Register registers metrics for the rest client to use. This can
47// only be called once.
48func Register(lm LatencyMetric, rm ResultMetric) {
49 registerMetrics.Do(func() {
50 RequestLatency = lm
51 RequestResult = rm
52 })
53}
54
55type noopLatency struct{}
56

Callers

nothing calls this directly

Calls 1

DoMethod · 0.65

Tested by

no test coverage detected