Sha256: 3bcc44af09ba21fe14d54e1b972ebfa88d1b4f94c523b414c31e085cd57c0bb7
Contents?: true
Size: 732 Bytes
Versions: 30
Compression:
Stored size: 732 Bytes
Contents
require 'ddtrace/contrib/patcher' module Datadog module Contrib module Excon # Patcher enables patching of 'excon' module. module Patcher include Contrib::Patcher module_function def patched? done?(:excon) end def patch do_once(:excon) do begin require 'ddtrace/contrib/excon/middleware' add_middleware rescue StandardError => e Datadog::Tracer.log.error("Unable to apply Excon integration: #{e}") end end end def add_middleware ::Excon.defaults[:middlewares] = Middleware.around_default_stack end end end end end
Version data entries
30 entries across 30 versions & 2 rubygems