class Opbeat::Integrations::Sidekiq

Public Instance Methods

call(worker, msg, queue) { || ... } click to toggle source
# File lib/opbeat/integrations/sidekiq.rb, line 10
def call(worker, msg, queue)
  begin
    yield
  rescue Exception => ex
    raise ex if [Interrupt, SystemExit, SignalException].include? ex.class
    ::Opbeat.capture_exception(ex)
    raise
  end
end