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

Method RecordConnectionRelaxedTimeout

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

RecordConnectionRelaxedTimeout records when connection timeout is relaxed/unrelaxed delta: +1 for relaxed, -1 for unrelaxed poolName: name of the connection pool (e.g., "main", "pubsub") notificationType: the notification type that triggered the timeout relaxation (e.g., "MOVING")

(ctx context.Context, delta int, cn *pool.Conn, poolName, notificationType string)

Source from the content-addressed store, hash-verified

49 // poolName: name of the connection pool (e.g., "main", "pubsub")
50 // notificationType: the notification type that triggered the timeout relaxation (e.g., "MOVING")
51 RecordConnectionRelaxedTimeout(ctx context.Context, delta int, cn *pool.Conn, poolName, notificationType string)
52
53 // RecordConnectionHandoff records when a connection is handed off to another node
54 // poolName: name of the connection pool (e.g., "main", "pubsub")

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