Sha256: 11732a023dd3dbb90949b986c9bb3908e3ba8f56158036f218922aadae3fa432

Contents?: true

Size: 641 Bytes

Versions: 12

Compression:

Stored size: 641 Bytes

Contents

# typed: true

require_relative '../patcher'

module Datadog
  module Tracing
    module Contrib
      module RestClient
        # Patcher enables patching of 'rest_client' module.
        module Patcher
          include Kernel # Ensure that kernel methods are always available (https://sorbet.org/docs/error-reference#7003)
          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

12 entries across 12 versions & 1 rubygems

Version Path
ddtrace-1.9.0 lib/datadog/tracing/contrib/rest_client/patcher.rb
ddtrace-1.8.0 lib/datadog/tracing/contrib/rest_client/patcher.rb
ddtrace-1.7.0 lib/datadog/tracing/contrib/rest_client/patcher.rb
ddtrace-1.6.1 lib/datadog/tracing/contrib/rest_client/patcher.rb
ddtrace-1.6.0 lib/datadog/tracing/contrib/rest_client/patcher.rb
ddtrace-1.5.2 lib/datadog/tracing/contrib/rest_client/patcher.rb
ddtrace-1.5.1 lib/datadog/tracing/contrib/rest_client/patcher.rb
ddtrace-1.5.0 lib/datadog/tracing/contrib/rest_client/patcher.rb
ddtrace-1.4.2 lib/datadog/tracing/contrib/rest_client/patcher.rb
ddtrace-1.4.1 lib/datadog/tracing/contrib/rest_client/patcher.rb
ddtrace-1.4.0 lib/datadog/tracing/contrib/rest_client/patcher.rb
ddtrace-1.3.0 lib/datadog/tracing/contrib/rest_client/patcher.rb