Sha256: fbbc91e6f6d8fe92ebd7fc1fdf1606083ac89803c146923bb106c26854f6a597

Contents?: true

Size: 606 Bytes

Versions: 7

Compression:

Stored size: 606 Bytes

Contents

# frozen_string_literal: true

require_relative '../../../core/utils/only_once'
require_relative 'instrumentation'
require_relative '../patcher'

module Datadog
  module Tracing
    module Contrib
      # Datadog Httpclient integration.
      module Httpclient
        # Patcher enables patching of 'httpclient' module.
        module Patcher
          include Contrib::Patcher

          module_function

          def target_version
            Integration.version
          end

          def patch
            ::HTTPClient.include(Instrumentation)
          end
        end
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
datadog-2.9.0 lib/datadog/tracing/contrib/httpclient/patcher.rb
datadog-2.8.0 lib/datadog/tracing/contrib/httpclient/patcher.rb
datadog-2.7.1 lib/datadog/tracing/contrib/httpclient/patcher.rb
datadog-2.7.0 lib/datadog/tracing/contrib/httpclient/patcher.rb
datadog-2.6.0 lib/datadog/tracing/contrib/httpclient/patcher.rb
datadog-2.5.0 lib/datadog/tracing/contrib/httpclient/patcher.rb
datadog-2.4.0 lib/datadog/tracing/contrib/httpclient/patcher.rb