Sha256: af75c72e99ef4bdaf325cb2a07ce87819c216686c2e92146dfc8a61b151f1094

Contents?: true

Size: 547 Bytes

Versions: 3

Compression:

Stored size: 547 Bytes

Contents

module Datadog
  module Contrib
    module Ethon
      # Patcher enables patching of 'ethon' module.
      module Patcher
        include Contrib::Patcher

        module_function

        def target_version
          Integration.version
        end

        def patch
          require 'ddtrace/ext/app_types'
          require 'ddtrace/contrib/ethon/easy_patch'
          require 'ddtrace/contrib/ethon/multi_patch'

          ::Ethon::Easy.include(EasyPatch)
          ::Ethon::Multi.include(MultiPatch)
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
ddtrace-0.51.1 lib/ddtrace/contrib/ethon/patcher.rb
ddtrace-0.51.0 lib/ddtrace/contrib/ethon/patcher.rb
ddtrace-0.50.0 lib/ddtrace/contrib/ethon/patcher.rb