Module: Datadog::Tracing::Contrib::Ethon::Patcher

Includes:
Patcher
Defined in:
lib/datadog/tracing/contrib/ethon/patcher.rb

Overview

Patcher enables patching of ‘ethon’ module.

Class Method Summary collapse

Methods included from Patcher

included

Class Method Details

.patchObject



19
20
21
22
23
24
25
# File 'lib/datadog/tracing/contrib/ethon/patcher.rb', line 19

def patch
  require_relative 'easy_patch'
  require_relative 'multi_patch'

  ::Ethon::Easy.include(EasyPatch)
  ::Ethon::Multi.include(MultiPatch)
end

.target_versionObject



15
16
17
# File 'lib/datadog/tracing/contrib/ethon/patcher.rb', line 15

def target_version
  Integration.version
end