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

Method RecordConnectionClosed

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

RecordConnectionClosed records when a connection is closed reason: reason for closing (e.g., "idle", "max_lifetime", "error", "pool_closed") err: the error that caused the close (nil for non-error closures)

(ctx context.Context, cn *pool.Conn, reason string, err error)

Source from the content-addressed store, hash-verified

72 // reason: reason for closing (e.g., "idle", "max_lifetime", "error", "pool_closed")
73 // err: the error that caused the close (nil for non-error closures)
74 RecordConnectionClosed(ctx context.Context, cn *pool.Conn, reason string, err error)
75
76 // RecordPubSubMessage records a Pub/Sub message
77 // direction: "sent" or "received"

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