Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hotfix: Improved Logging Instrumentation #457

Merged
merged 5 commits into from
Oct 9, 2024
Merged

Conversation

jonrandahl
Copy link
Contributor

This PR includes the following changes in order to reduce the log noise as a result of improved error handling in the application:

  • Set the Internal Error Instrumentation to an unless statement to
    ensure the application does not report internal errors to the Prometheus
    metrics when the error is a 404 thereby reducing the noise in the Slack alerts
    channel
  • Renamed render_error method to handle_error
  • Split the error logging into it's own method as well as adjusted the
    logged message to be either the response message or the response status

also updated method call in exceptions initialiser
Set the Internal Error Instrumentation to an `unless` statement to ensure the application does not report internal errors to the Prometheus metrics when the error is a 404 thereby reducing the noise in the Slack alerts channel
Split the error logging into it's own method as well as adjusted the logged message to be either the response message or the response status
@jonrandahl jonrandahl merged commit bf6c18d into prod Oct 9, 2024
2 checks passed
@jonrandahl jonrandahl deleted the hotfix/reduce-log-noise branch October 9, 2024 10:28
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