MCPcopy Create free account
hub / github.com/Mirantis/cri-dockerd / recordOperation

Function recordOperation

network/plugins.go:446–453  ·  view source on GitHub ↗

recordOperation records operation and duration

(operation string, start time.Time)

Source from the content-addressed store, hash-verified

444
445// recordOperation records operation and duration
446func recordOperation(operation string, start time.Time) {
447 metrics.NetworkPluginOperations.WithLabelValues(operation).Inc()
448 metrics.NetworkPluginOperationsLatency.WithLabelValues(
449 operation,
450 ).Observe(
451 metrics.SinceInSeconds(start),
452 )
453}
454
455// recordError records errors for metric.
456func recordError(operation string) {

Callers 4

GetPodNetworkStatusMethod · 0.70
SetUpPodMethod · 0.70
TearDownPodMethod · 0.70

Calls 1

SinceInSecondsFunction · 0.92

Tested by 1

Used in the wild real call sites across dependent graphs

searching dependent graphs…