module Datadog::Contrib::RestClient::Patcher

Patcher enables patching of 'rest_client' module.

Public Instance Methods

patch() click to toggle source
# File lib/ddtrace/contrib/rest_client/patcher.rb, line 14
def patch
  require 'ddtrace/ext/app_types'
  require 'ddtrace/contrib/rest_client/request_patch'

  ::RestClient::Request.send(:include, RequestPatch)
end
target_version() click to toggle source
# File lib/ddtrace/contrib/rest_client/patcher.rb, line 10
def target_version
  Integration.version
end