RecordOperationDuration records the total operation duration. dbIndex is the Redis database index (0-15).
(ctx context.Context, duration time.Duration, cmd Cmder, attempts int, err error, cn *pool.Conn, dbIndex int)
| 216 | // RecordOperationDuration records the total operation duration. |
| 217 | // dbIndex is the Redis database index (0-15). |
| 218 | func RecordOperationDuration(ctx context.Context, duration time.Duration, cmd Cmder, attempts int, err error, cn *pool.Conn, dbIndex int) { |
| 219 | getRecorder().RecordOperationDuration(ctx, duration, cmd, attempts, err, cn, dbIndex) |
| 220 | } |
| 221 | |
| 222 | // RecordPipelineOperationDuration records the total pipeline/transaction duration. |
| 223 | // This is called from redis.go after pipeline/transaction execution completes. |
nothing calls this directly
no test coverage detected