RecordPipelineOperationDuration records the total pipeline/transaction duration. This is called from redis.go after pipeline/transaction execution completes. operationName should be "PIPELINE" for regular pipelines or "MULTI" for transactions. err is the error from the pipeline execution (can be nil
(ctx context.Context, duration time.Duration, operationName string, cmdCount int, attempts int, err error, cn *pool.Conn, dbIndex int)
| 225 | // err is the error from the pipeline execution (can be nil). |
| 226 | // dbIndex is the Redis database index (0-15). |
| 227 | func RecordPipelineOperationDuration(ctx context.Context, duration time.Duration, operationName string, cmdCount int, attempts int, err error, cn *pool.Conn, dbIndex int) { |
| 228 | getRecorder().RecordPipelineOperationDuration(ctx, duration, operationName, cmdCount, attempts, err, cn, dbIndex) |
| 229 | } |
| 230 | |
| 231 | // RecordConnectionCreateTime records the time it took to create a new connection. |
| 232 | func RecordConnectionCreateTime(ctx context.Context, duration time.Duration, cn *pool.Conn) { |
nothing calls this directly
no test coverage detected