lib/ddtrace/contrib/faraday/patcher.rb in ddtrace-0.49.0 vs lib/ddtrace/contrib/faraday/patcher.rb in ddtrace-0.50.0
- old
+ new
@@ -32,20 +32,20 @@
if target_version >= Gem::Version.new('1.0.0')
# Patch the default connection (e.g. +Faraday.get+)
::Faraday.default_connection.use(:ddtrace)
# Patch new connection instances (e.g. +Faraday.new+)
- ::Faraday::Connection.send(:prepend, Connection)
+ ::Faraday::Connection.prepend(Connection)
else
# Patch the default connection (e.g. +Faraday.get+)
#
# We insert our middleware before the 'adapter', which is
# always the last handler.
idx = ::Faraday.default_connection.builder.handlers.size - 1
::Faraday.default_connection.builder.insert(idx, Middleware)
# Patch new connection instances (e.g. +Faraday.new+)
- ::Faraday::RackBuilder.send(:prepend, RackBuilder)
+ ::Faraday::RackBuilder.prepend(RackBuilder)
end
end
end
end
end