Skip to content
This repository was archived by the owner on Jan 12, 2024. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/opbeat/integrations/sidekiq.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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