lib/raven/integrations/sidekiq.rb in sentry-raven-1.2.3 vs lib/raven/integrations/sidekiq.rb in sentry-raven-2.0.0

- old
+ new

@@ -6,11 +6,11 @@ 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) + :time_spent => Time.now - started_at) raise ensure Context.clear! BreadcrumbBuffer.clear! end @@ -24,13 +24,13 @@ chain.add ::Raven::Sidekiq end end else Sidekiq.configure_server do |config| - config.error_handlers << Proc.new do |ex, context| + config.error_handlers << proc do |ex, context| Raven.capture_exception(ex, :extra => { - :sidekiq => filter_context(context) - }) + :sidekiq => filter_context(context) + }) end end end def filter_context(context)