Skip to content

Fix Prometheus counter of 5xx errors#230

Merged
unleashed merged 2 commits intomasterfrom
fix-prometheus-5xx-counter
Jul 13, 2020
Merged

Fix Prometheus counter of 5xx errors#230
unleashed merged 2 commits intomasterfrom
fix-prometheus-5xx-counter

Conversation

@davidor
Copy link
Copy Markdown
Contributor

@davidor davidor commented Jul 13, 2020

@davidor davidor requested a review from unleashed July 13, 2020 10:03
Copy link
Copy Markdown
Contributor

@unleashed unleashed left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we deploy something that causes an Exception rather than a StandardError, we'll get a 500 but won't report this, and this happens in some special cases such as when having syntax errors, failing to load a file, getting signalled, etc. From a quick search I got a list of non-standarderror exceptions we could see: https://www.honeybadger.io/blog/ruby-exception-vs-standarderror-whats-the-difference/

Comment thread lib/3scale/backend/rack/prometheus.rb Outdated
@davidor davidor force-pushed the fix-prometheus-5xx-counter branch from ecbba26 to 565a89e Compare July 13, 2020 10:51
@davidor davidor requested a review from unleashed July 13, 2020 10:56
@unleashed unleashed merged commit 43e62b3 into master Jul 13, 2020
@bors bors Bot deleted the fix-prometheus-5xx-counter branch July 13, 2020 11:03
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