Module: Datadog::Contrib::HTTP::Patcher

Includes:
Patcher
Defined in:
lib/ddtrace/contrib/http/patcher.rb

Overview

Patcher enables patching of ‘net/http’ module.

Class Method Summary collapse

Methods included from Patcher

included

Class Method Details

.patchObject

patch applies our patch if needed



20
21
22
# File 'lib/ddtrace/contrib/http/patcher.rb', line 20

def patch
  ::Net::HTTP.send(:include, Instrumentation)
end

.target_versionObject



15
16
17
# File 'lib/ddtrace/contrib/http/patcher.rb', line 15

def target_version
  Integration.version
end