Skip to content

Commit

Permalink
feat: add exception to prometheus metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
jonrandahl committed Aug 27, 2024
1 parent 0fb4bac commit 43a6e70
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/controllers/exceptions_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ def render_error
status_code = ActionDispatch::ExceptionWrapper.new(env, exception).status_code

sentry_code = maybe_report_to_sentry(exception, status_code)
# add the exception to the prometheus metrics
instrument_internal_error(exception)

render :error_page,
locals: { status: status_code, sentry_code: sentry_code },
Expand Down

0 comments on commit 43a6e70

Please sign in to comment.