lib/raven/integrations/delayed_job.rb in sentry-raven-0.9.0 vs lib/raven/integrations/delayed_job.rb in sentry-raven-0.9.1

- old
+ new

@@ -12,28 +12,28 @@ block.call(job, *args) rescue Exception => exception # Log error to Sentry ::Raven.capture_exception(exception, - logger => 'delayed_job', - tags => { - delayed_job_queue => job.queue - }, - extra => { - delayed_job => { - id => job.id, - priority => job.priority, - attempts => job.attempts, - handler => job.handler, - last_error => job.last_error, - run_at => job.run_at, - locked_at => job.locked_at, - #failed_at => job.failed_at, - locked_by => job.locked_by, - queue => job.queue, - created_at => job.created_at - } - }) + :logger => 'delayed_job', + :tags => { + :delayed_job_queue => job.queue + }, + :extra => { + :delayed_job => { + :id => job.id, + :priority => job.priority, + :attempts => job.attempts, + :handler => job.handler, + :last_error => job.last_error, + :run_at => job.run_at, + :locked_at => job.locked_at, + #failed_at => job.failed_at, + :locked_by => job.locked_by, + :queue => job.queue, + :created_at => job.created_at + } + }) # Make sure we propagate the failure! raise exception end end