Module: Datadog::Tracing::Contrib::SuckerPunch::Patcher

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

Overview

Patcher enables patching of ‘sucker_punch’ module.

Class Method Summary collapse

Methods included from Patcher

included

Class Method Details

.get_option(option) ⇒ Object



28
29
30
# File 'lib/datadog/tracing/contrib/sucker_punch/patcher.rb', line 28

def get_option(option)
  Datadog.configuration.tracing[:sucker_punch].get_option(option)
end

.patchObject



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

def patch
  require_relative 'exception_handler'
  require_relative 'instrumentation'

  ExceptionHandler.patch!
  Instrumentation.patch!
end

.target_versionObject



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

def target_version
  Integration.version
end