Skip to content

Conversation

@plural-copilot
Copy link

@plural-copilot plural-copilot bot commented Aug 7, 2025

Summary:
This PR fixes the firing alert due to high HTTP 500 errors on the /ping endpoint caused by intentional exception raising every third second.

Changes Made:

  • Added an environment variable check ENABLE_PING_ERRORS to guard the intentional exceptions in the /ping endpoint.
  • Exception raising is disabled by default unless ENABLE_PING_ERRORS=true is set in the environment.

Rationale:
Previously the /ping endpoint raised exceptions deterministically based on the Unix timestamp, causing 5xx errors and alert noise in production.
This fix allows disabling those deliberate errors in production, while retaining the ability to enable them for testing by setting an environment variable.

No other code or configuration changes are needed for this fix.

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.

2 participants