lib/instana/instrumentation/net-http.rb in instana-1.7.9 vs lib/instana/instrumentation/net-http.rb in instana-1.7.10

- old
+ new

@@ -3,10 +3,11 @@ if defined?(::Net::HTTP) && ::Instana.config[:nethttp][:enabled] Net::HTTP.class_eval { def request_with_instana(*args, &block) if !Instana.tracer.tracing? || !started? + do_skip = true return request_without_instana(*args, &block) end ::Instana.tracer.log_entry(:'net-http') @@ -52,10 +53,10 @@ response rescue => e ::Instana.tracer.log_error(e) raise ensure - ::Instana.tracer.log_exit(:'net-http', kv_payload) + ::Instana.tracer.log_exit(:'net-http', kv_payload) unless do_skip end Instana.logger.info "Instrumenting Net::HTTP" alias request_without_instana request