Sha256: c6173a21855d7502e89698e3a1eabdb6969b6b52d72880fe05b86499e51fd64d

Contents?: true

Size: 980 Bytes

Versions: 48

Compression:

Stored size: 980 Bytes

Contents

Rollbar.plugins.define('sidekiq >= 3') do
  require_dependency('sidekiq')
  dependency { !configuration.disable_monkey_patch }
  dependency { defined?(Sidekiq) }
  dependency { Sidekiq::VERSION.split('.')[0].to_i >= 3 }

  execute do
    require 'rollbar/plugins/sidekiq/plugin'

    Sidekiq.configure_server do |config|
      config.server_middleware do |chain|
        chain.add Rollbar::Sidekiq::ClearScope
      end

      config.error_handlers << proc do |e, context|
        Rollbar::Sidekiq.handle_exception(context, e)
      end
    end
  end
end

Rollbar.plugins.define('sidekiq < 3') do
  require_dependency('sidekiq')
  dependency { !configuration.disable_monkey_patch }
  dependency { defined?(Sidekiq) }
  dependency { Sidekiq::VERSION.split('.')[0].to_i < 3 }

  execute do
    require 'rollbar/plugins/sidekiq/plugin'

    Sidekiq.configure_server do |config|
      config.server_middleware do |chain|
        chain.add Rollbar::Sidekiq
      end
    end
  end
end

Version data entries

48 entries across 48 versions & 1 rubygems

Version Path
rollbar-2.20.0 lib/rollbar/plugins/sidekiq.rb
rollbar-2.19.4 lib/rollbar/plugins/sidekiq.rb
rollbar-2.19.3 lib/rollbar/plugins/sidekiq.rb
rollbar-2.19.2 lib/rollbar/plugins/sidekiq.rb
rollbar-2.19.1 lib/rollbar/plugins/sidekiq.rb
rollbar-2.19.0 lib/rollbar/plugins/sidekiq.rb
rollbar-2.18.2 lib/rollbar/plugins/sidekiq.rb
rollbar-2.18.0 lib/rollbar/plugins/sidekiq.rb
rollbar-2.17.0 lib/rollbar/plugins/sidekiq.rb
rollbar-2.16.4 lib/rollbar/plugins/sidekiq.rb
rollbar-2.16.3 lib/rollbar/plugins/sidekiq.rb
rollbar-2.16.2 lib/rollbar/plugins/sidekiq.rb
rollbar-2.16.0 lib/rollbar/plugins/sidekiq.rb
rollbar-2.15.6 lib/rollbar/plugins/sidekiq.rb
rollbar-2.15.5 lib/rollbar/plugins/sidekiq.rb
rollbar-2.15.4 lib/rollbar/plugins/sidekiq.rb
rollbar-2.15.3 lib/rollbar/plugins/sidekiq.rb
rollbar-2.15.2 lib/rollbar/plugins/sidekiq.rb
rollbar-2.15.1 lib/rollbar/plugins/sidekiq.rb
rollbar-2.15.0 lib/rollbar/plugins/sidekiq.rb