lib/raven/integrations/rails/active_job.rb in sentry-raven-0.14.0 vs lib/raven/integrations/rails/active_job.rb in sentry-raven-0.15.0
- old
+ new
@@ -5,10 +5,17 @@
base.class_eval do
rescue_from(Exception) do |exception|
# Do not capture exceptions when using Sidekiq so we don't capture
# The same exception twice.
unless self.class.queue_adapter.to_s == 'ActiveJob::QueueAdapters::SidekiqAdapter'
- Raven.capture_exception(exception, :extra => { :active_job => self.class.name })
+ Raven.capture_exception(exception, :extra => {
+ :active_job => self.class.name,
+ :arguments => arguments,
+ :scheduled_at => scheduled_at,
+ :job_id => job_id,
+ :provider_job_id => provider_job_id,
+ :locale => locale,
+ })
raise exception
end
end
end
end