module Datadog::Contrib::HTTP::Patcher

Patcher enables patching of 'net/http' module.

Public Instance Methods

patch() click to toggle source

patch applies our patch if needed

# File lib/ddtrace/contrib/http/patcher.rb, line 20
def patch
  ::Net::HTTP.send(:include, Instrumentation)
end
target_version() click to toggle source
# File lib/ddtrace/contrib/http/patcher.rb, line 15
def target_version
  Integration.version
end