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



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

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

.target_versionObject



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

def target_version
  Integration.version
end