bugsnag-elixir / plugsnag

A Bugsnag notifier for Elixir's plug
MIT License
66 stars 41 forks source link

[feature-request] Allow ignoring errors by status code #55

Open pedromss opened 3 hours ago

pedromss commented 3 hours ago

I noticed that out of the box Plugsnag reports 404 errors. I would like to request a feature that allows not reporting based on status code. I can't see a use case for wanting to report 404 as a bugsnag because anything can trigger a 404 so if someone were to spam our system with routes we don't have we'd essentially be bleeding out Bugsnag quota.

From the docs, there didn't seem to be a way around this, I only say the custom error builder, but I might have missed something.

Let me know if you're open to this and if you'd like me to take a shot at it.

nirev commented 3 hours ago

Hi, @pedromss

I've since moved to other providers so not actively using Bugsnag anymore. I do think it makes sense and would welcome a PR!