yabeda-rb / yabeda-rails

Yabeda plugin to collect basic metrics for Rails applications
MIT License
155 stars 20 forks source link

Status codes for unhandled exceptions #24

Closed dks17 closed 2 years ago

dks17 commented 2 years ago

Encounted that Grafana did't show all status codes by requests as it should be. And the reason was that logs saved without no statuses if an exception was not handled properly, e.g.

{
  controller: "api/hello",
  action: "world",
  status: nil,
  format: :json,
  method: "get",
}

Some exceptions which will be handle automatically and codes. And example how it was made in Rails 7.

Envek commented 2 years ago

Awesome, thanks!

Envek commented 2 years ago

Released in 0.8.1

dks17 commented 2 years ago

@Envek Thank you!