Skip to content

Conversation

@sreecharan-desu
Copy link

Fixes #16491. This PR updates the Redis wrapper in to safely access metrics methods (, ) using optional chaining (). This prevents crashes (e.g., ) when the metrics object is undefined or mocked incompletely, such as in certain test environments or when metrics are disabled via configuration.

@sreecharan-desu sreecharan-desu requested a review from a team as a code owner January 23, 2026 18:04
@sreecharan-desu sreecharan-desu force-pushed the fix/auth-server-redis-metrics-16491 branch from 5ba5528 to 31782fe Compare January 23, 2026 18:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fxa-auth-server mock statsd lacks of function histogram

1 participant