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

Method RecordMaintenanceNotification

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

RecordMaintenanceNotification records when a maintenance notification is received notificationType: the type of notification (e.g., "MOVING", "MIGRATING", etc.)

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

Source from the content-addressed store, hash-verified

64 // RecordMaintenanceNotification records when a maintenance notification is received
65 // notificationType: the type of notification (e.g., "MOVING", "MIGRATING", etc.)
66 RecordMaintenanceNotification(ctx context.Context, cn *pool.Conn, notificationType string)
67
68 // RecordConnectionWaitTime records the time spent waiting for a connection from the pool
69 RecordConnectionWaitTime(ctx context.Context, duration time.Duration, cn *pool.Conn)

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