Sha256: 8a0b8feffddd16b53ad7cb294413a1f30e999901ca374154995e7192c8a5f1ea

Contents?: true

Size: 581 Bytes

Versions: 2

Compression:

Stored size: 581 Bytes

Contents

require_relative '../patcher'

module Datadog
  module Tracing
    module Contrib
      module Excon
        # Patcher enables patching of 'excon' module.
        module Patcher
          include Contrib::Patcher

          module_function

          def target_version
            Integration.version
          end

          def patch
            require_relative 'middleware'
            add_middleware
          end

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ddtrace-1.10.1 lib/datadog/tracing/contrib/excon/patcher.rb
ddtrace-1.10.0 lib/datadog/tracing/contrib/excon/patcher.rb