GetPipelineOperationDurationCallback returns the callback for pipeline operation duration.
()
| 141 | |
| 142 | // GetPipelineOperationDurationCallback returns the callback for pipeline operation duration. |
| 143 | func GetPipelineOperationDurationCallback() func(ctx context.Context, duration time.Duration, operationName string, cmdCount int, attempts int, err error, cn *pool.Conn, dbIndex int) { |
| 144 | recorderMu.RLock() |
| 145 | cb := pipelineOperationDurationCallback |
| 146 | recorderMu.RUnlock() |
| 147 | return cb |
| 148 | } |
| 149 | |
| 150 | // getRecorder returns the current global recorder under a read lock. |
| 151 | func getRecorder() Recorder { |
no outgoing calls
no test coverage detected