Class: Raven::Sidekiq

Inherits:
Object
  • Object
show all
Defined in:
lib/raven/sidekiq.rb

Instance Method Summary collapse

Instance Method Details

#call(worker, msg, queue) ⇒ Object



5
6
7
8
9
10
11
12
# File 'lib/raven/sidekiq.rb', line 5

def call(worker, msg, queue)
  started_at = Time.now
  yield
rescue => ex
  Raven.capture_exception(ex, :extra => { :sidekiq => msg },
                              :time_spent => Time.now-started_at)
  raise
end