Module: Datadog::Tracing::Contrib::Trilogy::Patcher

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

Overview

Patcher enables patching of ‘trilogy’ module.

Class Method Summary collapse

Methods included from Patcher

included

Class Method Details

.patchObject



20
21
22
# File 'lib/datadog/tracing/contrib/trilogy/patcher.rb', line 20

def patch
  patch_trilogy_client
end

.patch_trilogy_clientObject



24
25
26
# File 'lib/datadog/tracing/contrib/trilogy/patcher.rb', line 24

def patch_trilogy_client
  ::Trilogy.include(Instrumentation)
end

.target_versionObject



16
17
18
# File 'lib/datadog/tracing/contrib/trilogy/patcher.rb', line 16

def target_version
  Integration.version
end