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

Method RecordConnectionCount

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

RecordConnectionCount records a change in connection count (UpDownCounter) delta: +1 when connection added, -1 when connection removed state: connection state (e.g., "idle", "used") isPubSub: true if this is a PubSub connection

(ctx context.Context, delta int, cn *pool.Conn, state string, isPubSub bool)

Source from the content-addressed store, hash-verified

91 // state: connection state (e.g., "idle", "used")
92 // isPubSub: true if this is a PubSub connection
93 RecordConnectionCount(ctx context.Context, delta int, cn *pool.Conn, state string, isPubSub bool)
94
95 // RecordPendingRequests records a change in pending requests (UpDownCounter)
96 // delta: +1 when request starts waiting, -1 when request stops waiting

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