lib/instana/instrumentation/excon.rb in instana-1.195.2 vs lib/instana/instrumentation/excon.rb in instana-1.195.3

- old
+ new

@@ -3,10 +3,10 @@ module Instana module Instrumentation class Excon < ::Excon::Middleware::Base def request_call(datum) - return @stack.request_call(datum) unless ::Instana.tracer.tracing? || !Instana.tracer.current_span.exit_span? + return @stack.request_call(datum) unless ::Instana.tracer.tracing? && !Instana.tracer.current_span.exit_span? payload = { :http => {} } path, query = datum[:path].split('?', 2) payload[:http][:url] = ::Instana.secrets.remove_from_query("#{datum[:connection].instance_variable_get(:@socket_key)}#{path}") payload[:http][:method] = datum[:method] if datum.key?(:method)