lib/opentelemetry/instrumentation/http/instrumentation.rb in opentelemetry-instrumentation-http-0.16.1 vs lib/opentelemetry/instrumentation/http/instrumentation.rb in opentelemetry-instrumentation-http-0.16.2
- old
+ new
@@ -15,10 +15,10 @@
require_dependencies
patch
end
present do
- defined?(::HTTP)
+ !(defined?(::HTTP) && Gem.loaded_specs['http']).nil?
end
def patch
::HTTP::Client.prepend(Patches::Client)
::HTTP::Connection.prepend(Patches::Connection)