Module: Datadog::Tracing::Contrib::RestClient::Patcher

Includes:
Patcher
Defined in:
lib/datadog/tracing/contrib/rest_client/patcher.rb

Overview

Patcher enables patching of 'rest_client' module.

Class Method Summary collapse

Methods included from Patcher

included

Class Method Details

.patch ⇒ Object



17
18
19
20
21
# File 'lib/datadog/tracing/contrib/rest_client/patcher.rb', line 17

def self.patch
  require_relative "request_patch"

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

.target_version ⇒ Object



13
14
15
# File 'lib/datadog/tracing/contrib/rest_client/patcher.rb', line 13

def self.target_version
  Integration.version
end