Sha256: 421e78436eff061fb0115fdfa566ca92c15ac375769597d9297be445a326200c

Contents?: true

Size: 535 Bytes

Versions: 30

Compression:

Stored size: 535 Bytes

Contents

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

        module_function

        def patched?
          done?(:rest_client)
        end

        def patch
          do_once(:rest_client) do
            require 'ddtrace/ext/app_types'
            require 'ddtrace/contrib/rest_client/request_patch'

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

Version data entries

30 entries across 30 versions & 2 rubygems

Version Path
ls-trace-0.1.2 lib/ddtrace/contrib/rest_client/patcher.rb
ddtrace-0.29.1 lib/ddtrace/contrib/rest_client/patcher.rb
ddtrace-0.26.1 lib/ddtrace/contrib/rest_client/patcher.rb
ls-trace-0.1.1 lib/ddtrace/contrib/rest_client/patcher.rb
ddtrace-0.29.0 lib/ddtrace/contrib/rest_client/patcher.rb
ddtrace-0.28.0 lib/ddtrace/contrib/rest_client/patcher.rb
ddtrace-0.27.0 lib/ddtrace/contrib/rest_client/patcher.rb
ddtrace-0.26.0 lib/ddtrace/contrib/rest_client/patcher.rb
ddtrace-0.25.1 lib/ddtrace/contrib/rest_client/patcher.rb
ddtrace-0.25.0 lib/ddtrace/contrib/rest_client/patcher.rb
ddtrace-0.24.0 lib/ddtrace/contrib/rest_client/patcher.rb
ddtrace-0.23.3 lib/ddtrace/contrib/rest_client/patcher.rb
ddtrace-0.23.2 lib/ddtrace/contrib/rest_client/patcher.rb
ddtrace-0.23.1 lib/ddtrace/contrib/rest_client/patcher.rb
ddtrace-0.23.0 lib/ddtrace/contrib/rest_client/patcher.rb
ddtrace-0.22.0 lib/ddtrace/contrib/rest_client/patcher.rb
ddtrace-0.21.2 lib/ddtrace/contrib/rest_client/patcher.rb
ddtrace-0.21.1 lib/ddtrace/contrib/rest_client/patcher.rb
ddtrace-0.21.0 lib/ddtrace/contrib/rest_client/patcher.rb
ddtrace-0.20.0 lib/ddtrace/contrib/rest_client/patcher.rb