Sha256: e956371a31d3daece258d7cbdf700ad2560b7202b48316caa4046ae32ebf300a

Contents?: true

Size: 479 Bytes

Versions: 3

Compression:

Stored size: 479 Bytes

Contents

module Datadog
  module Contrib
    module RestClient
      # Patcher enables patching of 'rest_client' module.
      module Patcher
        include Contrib::Patcher

        module_function

        def target_version
          Integration.version
        end

        def patch
          require 'ddtrace/ext/app_types'
          require 'ddtrace/contrib/rest_client/request_patch'

          ::RestClient::Request.include(RequestPatch)
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

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