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

Function RecordConnectionCreateTime

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

RecordConnectionCreateTime records the time it took to create a new connection.

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

Source from the content-addressed store, hash-verified

230
231// RecordConnectionCreateTime records the time it took to create a new connection.
232func RecordConnectionCreateTime(ctx context.Context, duration time.Duration, cn *pool.Conn) {
233 getRecorder().RecordConnectionCreateTime(ctx, duration, cn)
234}
235
236// RecordPubSubMessage records a Pub/Sub message sent or received.
237func RecordPubSubMessage(ctx context.Context, cn *pool.Conn, direction, channel string, sharded bool) {

Callers

nothing calls this directly

Calls 2

getRecorderFunction · 0.85

Tested by

no test coverage detected