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

included

Class Method Details

.add_middlewareObject



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

def add_middleware
  ::Excon.defaults[:middlewares] = Middleware.around_default_stack
end

.patchObject



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

def patch
  require_relative 'middleware'
  add_middleware
end

.target_versionObject



15
16
17
# File 'lib/datadog/tracing/contrib/excon/patcher.rb', line 15

def target_version
  Integration.version
end