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

Method RecordConnectionCreateTime

internal/otel/metrics.go:45–45  ·  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

43
44 // RecordConnectionCreateTime records the time it took to create a new connection
45 RecordConnectionCreateTime(ctx context.Context, duration time.Duration, cn *pool.Conn)
46
47 // RecordConnectionRelaxedTimeout records when connection timeout is relaxed/unrelaxed
48 // delta: +1 for relaxed, -1 for unrelaxed

Callers 2

SetGlobalRecorderFunction · 0.65

Implementers 3

metricsRecorderextra/redisotel-native/metrics.go
noopRecorderinternal/otel/metrics.go

Calls

no outgoing calls

Tested by

no test coverage detected