const statusSuccess …
const statusFailUnknown …
var StorageOperationMetric …
var storageOperationEndToEndLatencyMetric …
var csiOperationsLatencyMetric …
func init() { … }
func registerMetrics() { … }
func OperationCompleteHook(plugin, operationName string) func(types.CompleteFuncParam) { … }
func FSGroupCompleteHook(plugin volume.VolumePlugin, spec *volume.Spec) func(types.CompleteFuncParam) { … }
func GetFullQualifiedPluginNameForVolume(pluginName string, spec *volume.Spec) string { … }
func RecordOperationLatencyMetric(plugin, operationName string, secondsTaken float64) { … }
func RecordCSIOperationLatencyMetrics(driverName string,
operationName string,
operationErr error,
operationDuration time.Duration,
migrated string) { … }
func getErrorCode(err error) string { … }