I am using Sentry 8 from Hex sentry — sentry v8.0.6 and I see it reports lots of errors that are perfectly normal for Phoenix apps, e.g.
%Ecto.NoResultsError{}
happens when someone mistypes an id in the URL. It is converted properly to 404.
%Plug.CSRFProtection.InvalidCSRFTokenError{}
happens always when session ends and user tries to back-navigate. It is properly handled in a default setup.
%Plug.Conn.InvalidQueryError{}
when someone mistypes a URL.
%Phoenix.NotAcceptableError{}
happens when someone tries to use wrong content-type.
All of those are handled in the default configuration and properly converted to a correct HTTP error.
Should I simply add all Plug events to Sentry event filter? At least those that have designated HTTP error code?