lib/opentelemetry/instrumentation/sidekiq/instrumentation.rb in opentelemetry-instrumentation-sidekiq-0.5.0 vs lib/opentelemetry/instrumentation/sidekiq/instrumentation.rb in opentelemetry-instrumentation-sidekiq-0.6.0
- old
+ new
@@ -43,10 +43,10 @@
config.server_middleware do |chain|
chain.add Middlewares::Server::TracerMiddleware
end
end
- if defined?(::Sidekiq::Testing)
+ if defined?(::Sidekiq::Testing) # rubocop:disable Style/GuardClause
::Sidekiq::Testing.server_middleware do |chain|
chain.add Middlewares::Server::TracerMiddleware
end
end
end