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
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 |
.patch ⇒ Object
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_version ⇒ Object
16 17 18 |
# File 'lib/datadog/tracing/contrib/sucker_punch/patcher.rb', line 16 def target_version Integration.version end |