Class: Raven::Sidekiq
- Inherits:
-
Object
- Object
- Raven::Sidekiq
- Defined in:
- lib/raven/integrations/sidekiq.rb
Instance Method Summary collapse
Instance Method Details
#call(_worker, msg, _queue) ⇒ Object
6 7 8 9 10 11 12 13 |
# File 'lib/raven/integrations/sidekiq.rb', line 6 def call(_worker, msg, _queue) started_at = Time.now yield rescue Exception => ex Raven.capture_exception(ex, :extra => { :sidekiq => msg }, :time_spent => Time.now-started_at) raise end |