lib/instana/instrumentation/net-http.rb in instana-1.9.6 vs lib/instana/instrumentation/net-http.rb in instana-1.9.7

- old
+ new

@@ -35,10 +35,10 @@ # The core call response = request_without_instana(*args, &block) # Debug only check: Pickup response headers; convert back to base 10 integer and validate - if ::Instana.debug? && response.key?('X-Instana-T') + if ENV.key?('INSTANA_DEBUG') && response.key?('X-Instana-T') if ::Instana.tracer.trace_id != ::Instana::Util.header_to_id(response.header['X-Instana-T']) ::Instana.logger.debug "#{Thread.current}: Trace ID mismatch on net/http response! ours: #{::Instana.tracer.trace_id} theirs: #{their_trace_id}" end end