-
Notifications
You must be signed in to change notification settings - Fork 174
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rails 7 Error Subscriber #728
Comments
Hi @iainbeeston - thanks for raising this, we actually already have an item on our product roadmap to add this in the future. There are some complexities with implementing this to avoid duplicate reporting which we need to investigate; I don't have an ETA for this work but will make sure we keep this thread updated 👍 |
Checking in on this after a year: any update on prioritizing this? |
Hi @joshbeckman |
Honeybadger, Sentry have this feature implemented. I will check other gems - but this seems to be the norm nowadays. |
Hi 👋 Just to keep everyone informed about the progress on this task - one of our engineering team members is currently looking into it, and we're aiming to implement this feature is the near future. Once the release is ready, we'll make sure to update this thread accordingly. |
I've run into an issue with a few gems that use the new reporter, but without support they aren't being picked up by Bugsnag. I've made this as a workaround until official support is added: module Bugsnag::ActiveSupportErrorReporter
def report error, handled: true, severity: handled ? :warning : :error, context: {}, source: ActiveSupport::ErrorReporter::DEFAULT_SOURCE
Bugsnag.notify(error) do |event|
event.severity = severity.to_s
event.unhandled = !handled
end
super
end
end
ActiveSupport::ErrorReporter.prepend(Bugsnag::ActiveSupportErrorReporter) |
Description
Ruby on Rails 7 introduced a standard solution for error reporting where services like bugsnag provide an error subscriber class that is interchangeable and hooks into rails in a standard way.
Describe the solution you'd like
It would be great if bugsnag could provide an official error subscriber class for rails 7.
Describe alternatives you've considered
I think the current solution works fine but it’d be good to support the official error API.
Additional context
The text was updated successfully, but these errors were encountered: