Sha256: a6cd977c65c9918e0a75a25bd039904225a4602e67f83915f1ca5e37100609ec
Contents?: true
Size: 1.22 KB
Versions: 4
Compression:
Stored size: 1.22 KB
Contents
# typed: false require 'datadog/tracing/contrib/integration' require 'datadog/tracing/contrib/httpclient/configuration/settings' require 'datadog/tracing/contrib/configuration/resolvers/pattern_resolver' require 'datadog/tracing/contrib/httpclient/patcher' module Datadog module Tracing module Contrib module Httpclient # Description of Httpclient integration class Integration include Contrib::Integration MINIMUM_VERSION = Gem::Version.new('2.2.0') # @public_api Changing the integration name or integration options can cause breaking changes 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 new_configuration Configuration::Settings.new end def patcher Patcher end def resolver @resolver ||= Contrib::Configuration::Resolvers::PatternResolver.new end end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems