Sentry-ruby: Async w/ ActiveJob silently fails

Created on 25 May 2016  路  5Comments  路  Source: getsentry/sentry-ruby

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.

bug

Most helpful comment

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

All 5 comments

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

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

I think this is related to #511.

PR for sync fallback is available at #548

Was this page helpful?
0 / 5 - 0 ratings