Sha256: 6c728df64d3bf78e35cac9a5f927a78180c582769e19ca1a6591b14dbd0f469a
Contents?: true
Size: 1.01 KB
Versions: 5
Compression:
Stored size: 1.01 KB
Contents
# typed: false require 'ddtrace/contrib/integration' require 'ddtrace/contrib/httpclient/configuration/settings' require 'ddtrace/contrib/configuration/resolvers/pattern_resolver' require 'ddtrace/contrib/httpclient/patcher' module Datadog module Contrib module Httpclient # Description of Httpclient integration class Integration include Contrib::Integration MINIMUM_VERSION = Gem::Version.new('2.2.0') register_as :httpclient def self.version Gem.loaded_specs['httpclient'] && Gem.loaded_specs['httpclient'].version end def self.loaded? !defined?(::HTTPClient).nil? end def self.compatible? super && version >= MINIMUM_VERSION end def default_configuration Configuration::Settings.new end def patcher Patcher end def resolver @resolver ||= Contrib::Configuration::Resolvers::PatternResolver.new end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems