Support errors happening in ActiveJob (solid_queue, sidekiq, ...)
stillhart opened this issue · comments
It would be nice if solid_errors supports ActiveJob. Sentry-Rails could be a good resource of inspiration.
https://github.com/getsentry/sentry-ruby/blob/master/sentry-rails/lib/sentry/rails/active_job.rb
https://github.com/getsentry/sentry-ruby/blob/master/sentry-rails/lib/sentry/rails/railtie.rb
Or is this the job of the background worker such as solid_queue? If so, I can open an issue in solid_queue
@stillhart I came up with simple integration for ActiveJob (tested with SolidQueue)
https://gist.github.com/defkode/3da234167d1a7bc18a46ff2e700c4d65
@fractaledmind Been working on my own error reporter too(cause why not 😄) and stumbled on this. Opened up rails/rails#53201 to hopefully fix this and cut down on monkey patching. Action Cable may need something too but havent tested it yet.