lib/instana/instrumentation/sidekiq-worker.rb in instana-1.209.2 vs lib/instana/instrumentation/sidekiq-worker.rb in instana-1.209.3
- old
+ new
@@ -16,13 +16,9 @@
Sidekiq.redis_pool.with do |client|
opts = client.respond_to?(:connection) ? client.connection : client.client.options
kv_payload[:'sidekiq-worker'][:'redis-url'] = "#{opts[:host]}:#{opts[:port]}"
end
- if ENV.key?('INSTANA_SERVICE_NAME')
- kv_payload[:service] = ENV['INSTANA_SERVICE_NAME']
- end
-
context = {}
if msg.key?('X-Instana-T')
trace_id = msg.delete('X-Instana-T')
span_id = msg.delete('X-Instana-S')
context[:trace_id] = ::Instana::Util.header_to_id(trace_id)