lib/opentelemetry/instrumentation/sidekiq/instrumentation.rb in opentelemetry-instrumentation-sidekiq-0.24.4 vs lib/opentelemetry/instrumentation/sidekiq/instrumentation.rb in opentelemetry-instrumentation-sidekiq-0.25.0

- old
+ new

@@ -65,27 +65,27 @@ end def add_client_middleware ::Sidekiq.configure_client do |config| config.client_middleware do |chain| - chain.add Middlewares::Client::TracerMiddleware + chain.prepend Middlewares::Client::TracerMiddleware end end end def add_server_middleware ::Sidekiq.configure_server do |config| config.client_middleware do |chain| - chain.add Middlewares::Client::TracerMiddleware + chain.prepend Middlewares::Client::TracerMiddleware end config.server_middleware do |chain| - chain.add Middlewares::Server::TracerMiddleware + chain.prepend Middlewares::Server::TracerMiddleware end end if defined?(::Sidekiq::Testing) # rubocop:disable Style/GuardClause ::Sidekiq::Testing.server_middleware do |chain| - chain.add Middlewares::Server::TracerMiddleware + chain.prepend Middlewares::Server::TracerMiddleware end end end end end