require 'ddtrace/version' require 'ddtrace/contrib/integration' require 'ddtrace/contrib/http/configuration/settings' require 'ddtrace/contrib/http/patcher' require 'ddtrace/contrib/http/circuit_breaker' module Datadog module Contrib # HTTP integration module HTTP extend CircuitBreaker # Description of HTTP integration class Integration include Contrib::Integration MINIMUM_VERSION = Datadog::VERSION::MINIMUM_RUBY_VERSION register_as :http, auto_patch: true def self.version Gem::Version.new(RUBY_VERSION) end def self.loaded? !defined?(::Net::HTTP).nil? end def default_configuration Configuration::Settings.new end def patcher Patcher end end end end end