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

Method RecordConnectionWaitTime

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

RecordConnectionWaitTime records the time spent waiting for a connection from the pool

(ctx context.Context, duration time.Duration, cn *pool.Conn)

Source from the content-addressed store, hash-verified

67
68 // RecordConnectionWaitTime records the time spent waiting for a connection from the pool
69 RecordConnectionWaitTime(ctx context.Context, duration time.Duration, cn *pool.Conn)
70
71 // RecordConnectionClosed records when a connection is closed
72 // reason: reason for closing (e.g., "idle", "max_lifetime", "error", "pool_closed")

Callers 1

SetGlobalRecorderFunction · 0.65

Implementers 3

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

Calls

no outgoing calls

Tested by

no test coverage detected