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

Method RecordConnectionHandoff

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

RecordConnectionHandoff records when a connection is handed off to another node poolName: name of the connection pool (e.g., "main", "pubsub")

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

Source from the content-addressed store, hash-verified

53 // RecordConnectionHandoff records when a connection is handed off to another node
54 // poolName: name of the connection pool (e.g., "main", "pubsub")
55 RecordConnectionHandoff(ctx context.Context, cn *pool.Conn, poolName string)
56
57 // RecordError records client errors (ASK, MOVED, handshake failures, etc.)
58 // errorType: type of error (e.g., "ASK", "MOVED", "HANDSHAKE_FAILED")

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