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

Includes:
Patcher
Defined in:
lib/datadog/tracing/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



23
24
25
# File 'lib/datadog/tracing/contrib/http/patcher.rb', line 23

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

.target_versionObject



18
19
20
# File 'lib/datadog/tracing/contrib/http/patcher.rb', line 18

def target_version
  Integration.version
end