MCPcopy
hub / github.com/redis/go-redis / RecordPipelineOperationDuration

Method RecordPipelineOperationDuration

internal/otel/metrics.go:42–42  ·  view source on GitHub ↗

RecordPipelineOperationDuration records the total pipeline/transaction duration. operationName should be "PIPELINE" for regular pipelines or "MULTI" for transactions. cmdCount is the number of commands in the pipeline. err is the error from the pipeline execution (can be nil). dbIndex is the Redis d

(ctx context.Context, duration time.Duration, operationName string, cmdCount int, attempts int, err error, cn *pool.Conn, dbIndex int)

Source from the content-addressed store, hash-verified

40 // err is the error from the pipeline execution (can be nil).
41 // dbIndex is the Redis database index (0-15)
42 RecordPipelineOperationDuration(ctx context.Context, duration time.Duration, operationName string, cmdCount int, attempts int, err error, cn *pool.Conn, dbIndex int)
43
44 // RecordConnectionCreateTime records the time it took to create a new connection
45 RecordConnectionCreateTime(ctx context.Context, duration time.Duration, cn *pool.Conn)

Callers 2

SetGlobalRecorderFunction · 0.65

Implementers 3

metricsRecorderextra/redisotel-native/metrics.go
noopRecorderinternal/otel/metrics.go

Calls

no outgoing calls

Tested by

no test coverage detected