Module: Datadog::Tracing::Contrib::Excon::Patcher
- Includes:
- Patcher
- Defined in:
- lib/datadog/tracing/contrib/excon/patcher.rb
Overview
Patcher enables patching of ‘excon’ module.
Class Method Summary collapse
Methods included from Patcher
Class Method Details
.add_middleware ⇒ Object
24 25 26 |
# File 'lib/datadog/tracing/contrib/excon/patcher.rb', line 24 def add_middleware ::Excon.defaults[:middlewares] = Middleware.around_default_stack end |
.patch ⇒ Object
19 20 21 22 |
# File 'lib/datadog/tracing/contrib/excon/patcher.rb', line 19 def patch require_relative 'middleware' add_middleware end |
.target_version ⇒ Object
15 16 17 |
# File 'lib/datadog/tracing/contrib/excon/patcher.rb', line 15 def target_version Integration.version end |