Sha256: 559faae7b866a23b159903fb5dfa7b436d0d9c51ee35f97a59dd30fdbac69669

Contents?: true

Size: 837 Bytes

Versions: 1

Compression:

Stored size: 837 Bytes

Contents

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ddtrace-0.33.1 lib/ddtrace/contrib/http/integration.rb