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

Function GetPipelineOperationDurationCallback

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

GetPipelineOperationDurationCallback returns the callback for pipeline operation duration.

()

Source from the content-addressed store, hash-verified

141
142// GetPipelineOperationDurationCallback returns the callback for pipeline operation duration.
143func 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.
151func getRecorder() Recorder {

Callers 3

processPipelineMethod · 0.92
processTxPipelineMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected