lib/request_tracer/integration/sidekiq_handler.rb in request-tracer-0.6.1 vs lib/request_tracer/integration/sidekiq_handler.rb in request-tracer-0.6.2
- old
+ new
@@ -5,18 +5,14 @@
module SidekiqHandler
include Base
extend self
def activate
require 'sidekiq'
- Sidekiq.configure_server do |config|
- config.server_middleware do |chain|
- chain.add ServerMiddleware
- end
+ Sidekiq.server_middleware do |chain|
+ chain.add ServerMiddleware
end
- Sidekiq.configure_client do |config|
- config.client_middleware do |chain|
- chain.add ClientMiddleware
- end
+ Sidekiq.client_middleware do |chain|
+ chain.add ClientMiddleware
end
end
class ServerMiddleware
def call(worker, msg, queue)