class Opbeat::Integration::Sidekiq

Public Instance Methods

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

    Opbeat.report exception

    raise
  end
end