diff --git a/lib/opbeat/integrations/sidekiq.rb b/lib/opbeat/integrations/sidekiq.rb index 6d170a3..77d6363 100644 --- a/lib/opbeat/integrations/sidekiq.rb +++ b/lib/opbeat/integrations/sidekiq.rb @@ -12,7 +12,7 @@ def call(worker, msg, queue) yield rescue Exception => ex raise ex if [Interrupt, SystemExit, SignalException].include? ex.class - ::Opbeat.capture_exception(ex) + ::Opbeat.capture_exception(ex, extra: msg) raise end end @@ -26,7 +26,7 @@ def call(worker, msg, queue) chain.add ::Opbeat::Integrations::Sidekiq end else - config.error_handlers << Proc.new { |ex, ctx| ::Opbeat.capture_exception(ex) } + config.error_handlers << Proc.new { |ex, ctx| ::Opbeat.capture_exception(ex, extra: ctx) } end end end