lib/instana/instrumentation/net-http.rb in instana-1.193.2 vs lib/instana/instrumentation/net-http.rb in instana-1.193.3.pre1

- old
+ new

@@ -1,9 +1,9 @@ require 'net/http' -if defined?(::Net::HTTP) && ::Instana.config[:nethttp][:enabled] - module Instana +module Instana + module Instrumentation module NetHTTPInstrumentation def request(*args, &block) if !Instana.tracer.tracing? || !started? do_skip = true return super(*args, &block) @@ -52,9 +52,6 @@ ensure ::Instana.tracer.log_exit(:'net-http', kv_payload) unless do_skip end end end - - ::Instana.logger.debug "Instrumenting Net::HTTP" - Net::HTTP.prepend(::Instana::NetHTTPInstrumentation) end