Sha256: 286f42016a3f23acd1f8a299ab7a902b06f864bb3b8a3335ea8276ac01f4c609

Contents?: true

Size: 562 Bytes

Versions: 28

Compression:

Stored size: 562 Bytes

Contents

require 'ddtrace/contrib/patcher'
require 'ddtrace/contrib/http/ext'
require 'ddtrace/contrib/http/instrumentation'

module Datadog
  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.send(:include, Instrumentation)
        end
      end
    end
  end
end

Version data entries

28 entries across 28 versions & 2 rubygems

Version Path
ddtrace-0.49.0 lib/ddtrace/contrib/http/patcher.rb
ddtrace-0.48.0 lib/ddtrace/contrib/http/patcher.rb
ddtrace-0.47.0 lib/ddtrace/contrib/http/patcher.rb
ddtrace-0.46.0 lib/ddtrace/contrib/http/patcher.rb
ddtrace-0.45.0 lib/ddtrace/contrib/http/patcher.rb
ddtrace-0.44.0 lib/ddtrace/contrib/http/patcher.rb
ddtrace-0.43.0 lib/ddtrace/contrib/http/patcher.rb
ddtrace-0.42.0 lib/ddtrace/contrib/http/patcher.rb
ddtrace-0.41.0 lib/ddtrace/contrib/http/patcher.rb
ls-trace-0.2.0 lib/ddtrace/contrib/http/patcher.rb
ddtrace-0.40.0 lib/ddtrace/contrib/http/patcher.rb
ddtrace-0.39.0 lib/ddtrace/contrib/http/patcher.rb
ddtrace-0.38.0 lib/ddtrace/contrib/http/patcher.rb
ddtrace-0.37.0 lib/ddtrace/contrib/http/patcher.rb
ddtrace-0.36.0 lib/ddtrace/contrib/http/patcher.rb
ddtrace-0.35.2 lib/ddtrace/contrib/http/patcher.rb
ddtrace-0.35.1 lib/ddtrace/contrib/http/patcher.rb
ddtrace-0.35.0 lib/ddtrace/contrib/http/patcher.rb
ddtrace-0.34.2 lib/ddtrace/contrib/http/patcher.rb
ddtrace-0.34.1 lib/ddtrace/contrib/http/patcher.rb