mimiquate / tower

🏰 Flexible error tracking and reporting in Elixir
https://hex.pm/packages/tower
Apache License 2.0
73 stars 1 forks source link

`Phoenix.ActionClauseError` is reported when using Bandit, despite returning `400` http status code #83

Open grzuy opened 2 hours ago

grzuy commented 2 hours ago

Any exception for which Plug.Exception.status(exception) is less than 500 should not be reported. As is working with Plug.Cowboy.

grzuy commented 2 hours ago

This in part caused because for Bandit we're listening for Telemetry events instead of log events. And Bandit emits telemetry events for all exceptions regardless of it's Plug.Exception.status result.