module Datadog::Contrib::Excon::Patcher

Patcher enables patching of 'excon' module.

Public Instance Methods

add_middleware() click to toggle source
# File lib/ddtrace/contrib/excon/patcher.rb, line 21
def add_middleware
  ::Excon.defaults[:middlewares] = Middleware.around_default_stack
end
patch() click to toggle source
# File lib/ddtrace/contrib/excon/patcher.rb, line 16
def patch
  require 'ddtrace/contrib/excon/middleware'
  add_middleware
end
target_version() click to toggle source
# File lib/ddtrace/contrib/excon/patcher.rb, line 12
def target_version
  Integration.version
end