Module: Datadog::Contrib::Excon::Patcher
- Includes:
- Patcher
- Defined in:
- lib/ddtrace/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
22 23 24 |
# File 'lib/ddtrace/contrib/excon/patcher.rb', line 22 def add_middleware ::Excon.defaults[:middlewares] = Middleware.around_default_stack end |
.patch ⇒ Object
17 18 19 20 |
# File 'lib/ddtrace/contrib/excon/patcher.rb', line 17 def patch require 'ddtrace/contrib/excon/middleware' add_middleware end |
.target_version ⇒ Object
13 14 15 |
# File 'lib/ddtrace/contrib/excon/patcher.rb', line 13 def target_version Integration.version end |