lib/instana/instrumentation/sidekiq-client.rb in instana-1.7.6 vs lib/instana/instrumentation/sidekiq-client.rb in instana-1.7.7

- old
+ new

@@ -8,11 +8,11 @@ kv_payload[:'sidekiq-client'][:retry] = msg['retry'].to_s ::Instana.tracer.log_entry(:'sidekiq-client', kv_payload) # Temporary until we move connection collection to redis # instrumentation - Sidekiq.redis_pool.with do |conn| - opts = conn.client.options + Sidekiq.redis_pool.with do |client| + opts = client.respond_to?(:connection) ? client.connection : client.client.options kv_payload[:'sidekiq-client'][:'redis-url'] = "#{opts[:host]}:#{opts[:port]}" end context = ::Instana.tracer.context if context