lib/opentelemetry/instrumentation/http/instrumentation.rb in opentelemetry-instrumentation-http-0.19.4 vs lib/opentelemetry/instrumentation/http/instrumentation.rb in opentelemetry-instrumentation-http-0.19.5

- old
+ new

@@ -13,10 +13,10 @@ require_dependencies patch end present do - !(defined?(::HTTP) && Gem.loaded_specs['http']).nil? + !(defined?(::HTTP::Client).nil? || defined?(::HTTP::Connection).nil?) end def patch ::HTTP::Client.prepend(Patches::Client) ::HTTP::Connection.prepend(Patches::Connection)