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

Method RecordError

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

RecordError records client errors (ASK, MOVED, handshake failures, etc.) errorType: type of error (e.g., "ASK", "MOVED", "HANDSHAKE_FAILED") statusCode: Redis response status code if available (e.g., "MOVED", "ASK") isInternal: whether this is an internal error retryAttempts: number of retry attempt

(ctx context.Context, errorType string, cn *pool.Conn, statusCode string, isInternal bool, retryAttempts int)

Source from the content-addressed store, hash-verified

60 // isInternal: whether this is an internal error
61 // retryAttempts: number of retry attempts made
62 RecordError(ctx context.Context, errorType string, cn *pool.Conn, statusCode string, isInternal bool, retryAttempts int)
63
64 // RecordMaintenanceNotification records when a maintenance notification is received
65 // notificationType: the type of notification (e.g., "MOVING", "MIGRATING", etc.)

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