Sha256: 46331133225fa702a7d3e211896db8b2a907524ff979607cfd12075cbfed4207

Contents?: true

Size: 584 Bytes

Versions: 2

Compression:

Stored size: 584 Bytes

Contents

require_relative '../patcher'
require_relative 'ext'
require_relative 'instrumentation'

module Datadog
  module Tracing
    module Contrib
      # Datadog Net/HTTP integration.
      module HTTP
        # Patcher enables patching of 'net/http' module.
        module Patcher
          include Contrib::Patcher

          module_function

          def target_version
            Integration.version
          end

          # patch applies our patch if needed
          def patch
            ::Net::HTTP.include(Instrumentation)
          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/http/patcher.rb
ddtrace-1.10.0 lib/datadog/tracing/contrib/http/patcher.rb