Sha256: 2e588dc7ca807fd2e871ba335cdbbb92150c8d42123936bdabcad132b26db9c7

Contents?: true

Size: 486 Bytes

Versions: 28

Compression:

Stored size: 486 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.send(:include, RequestPatch)
        end
      end
    end
  end
end

Version data entries

28 entries across 28 versions & 2 rubygems

Version Path
ddtrace-0.34.0 lib/ddtrace/contrib/rest_client/patcher.rb
ddtrace-0.33.1 lib/ddtrace/contrib/rest_client/patcher.rb
ddtrace-0.33.0 lib/ddtrace/contrib/rest_client/patcher.rb
ddtrace-0.32.0 lib/ddtrace/contrib/rest_client/patcher.rb
ddtrace-0.31.1 lib/ddtrace/contrib/rest_client/patcher.rb
ddtrace-0.31.0 lib/ddtrace/contrib/rest_client/patcher.rb
ddtrace-0.30.1 lib/ddtrace/contrib/rest_client/patcher.rb
ddtrace-0.30.0 lib/ddtrace/contrib/rest_client/patcher.rb