Sha256: 64de22217073a60b00ec2d4dd08c6d2fc0eb1fb6d0db271e0246e86022b49164

Contents?: true

Size: 504 Bytes

Versions: 2

Compression:

Stored size: 504 Bytes

Contents

require_relative '../patcher'

module Datadog
  module Tracing
    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_relative 'request_patch'

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ddtrace-1.10.1 lib/datadog/tracing/contrib/rest_client/patcher.rb
ddtrace-1.10.0 lib/datadog/tracing/contrib/rest_client/patcher.rb