sentry-ruby icon indicating copy to clipboard operation
sentry-ruby copied to clipboard

Async w/ ActiveJob silently fails

Open budnik opened this issue 10 years ago • 5 comments

I just tried to setup raven-ruby following docs:

Raven.configure do |config|
  config.async = ->(event) { SentryJob.perform_later(event.to_hash) }
end

It was silently failing to enqueue the job util I changed to:

Raven.configure do |config|
  config.async = ->(event) { SentryJob.perform_later(event.to_hash.except(:request) }
end

I tried both :inline and :sidekiq AJ backends, I think there's some serialization issue that is swallowed silently. I'm going to provide repro gists soon meanwhile I opening this issue now to share this workaround.

budnik avatar May 25 '16 14:05 budnik

:( We should make sure we fail loudly if async is misconfigured.

nateberkopec avatar May 25 '16 16:05 nateberkopec

Hit this too. May be nice to fall back to non-async capture of both the event and the async exception.

jeremy avatar May 25 '16 17:05 jeremy

I think this is related to #511.

nateberkopec avatar Jul 21 '16 17:07 nateberkopec

PR for sync fallback is available at #548

nateberkopec avatar Sep 20 '16 17:09 nateberkopec