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

Method RecordOperationDuration

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

RecordOperationDuration records the total operation duration (including all retries) 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)

Source from the content-addressed store, hash-verified

33 // RecordOperationDuration records the total operation duration (including all retries)
34 // dbIndex is the Redis database index (0-15)
35 RecordOperationDuration(ctx context.Context, duration time.Duration, cmd Cmder, attempts int, err error, cn *pool.Conn, dbIndex int)
36
37 // RecordPipelineOperationDuration records the total pipeline/transaction duration.
38 // operationName should be "PIPELINE" for regular pipelines or "MULTI" for transactions.

Callers 2

SetGlobalRecorderFunction · 0.65
RecordOperationDurationFunction · 0.65

Implementers 3

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

Calls

no outgoing calls

Tested by

no test coverage detected