Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for requestName (0.11 sec)

  1. pkg/volume/util/metrics.go

    }
    
    // OperationCompleteHook returns a hook to call when an operation is completed
    func OperationCompleteHook(plugin, operationName string) func(types.CompleteFuncParam) {
    	requestTime := time.Now()
    	opComplete := func(c types.CompleteFuncParam) {
    		timeTaken := time.Since(requestTime).Seconds()
    		// Create metric with operation name and plugin name
    		status := statusSuccess
    		if *c.Err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Aug 23 23:05:31 UTC 2022
    - 5.8K bytes
    - Viewed (0)
Back to top