Sha256: 5c66d68b5cfdd3cf8cc55b3e14df7de73abc89602098b35f348ed4b0b3bdf8ee

Contents?: true

Size: 982 Bytes

Versions: 24

Compression:

Stored size: 982 Bytes

Contents

require 'ddtrace/contrib/integration'
require 'ddtrace/contrib/excon/configuration/settings'
require 'ddtrace/contrib/configuration/resolvers/pattern_resolver'
require 'ddtrace/contrib/excon/patcher'

module Datadog
  module Contrib
    module Excon
      # Description of Excon integration
      class Integration
        include Contrib::Integration

        MINIMUM_VERSION = Gem::Version.new('0.50.0')

        register_as :excon

        def self.version
          Gem.loaded_specs['excon'] && Gem.loaded_specs['excon'].version
        end

        def self.loaded?
          !defined?(::Excon).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

24 entries across 24 versions & 2 rubygems

Version Path
ddtrace-0.51.1 lib/ddtrace/contrib/excon/integration.rb
ddtrace-0.51.0 lib/ddtrace/contrib/excon/integration.rb
ddtrace-0.50.0 lib/ddtrace/contrib/excon/integration.rb
ddtrace-0.49.0 lib/ddtrace/contrib/excon/integration.rb
ddtrace-0.48.0 lib/ddtrace/contrib/excon/integration.rb
ddtrace-0.47.0 lib/ddtrace/contrib/excon/integration.rb
ddtrace-0.46.0 lib/ddtrace/contrib/excon/integration.rb
ddtrace-0.45.0 lib/ddtrace/contrib/excon/integration.rb
ddtrace-0.44.0 lib/ddtrace/contrib/excon/integration.rb
ddtrace-0.43.0 lib/ddtrace/contrib/excon/integration.rb
ddtrace-0.42.0 lib/ddtrace/contrib/excon/integration.rb
ddtrace-0.41.0 lib/ddtrace/contrib/excon/integration.rb
ls-trace-0.2.0 lib/ddtrace/contrib/excon/integration.rb
ddtrace-0.40.0 lib/ddtrace/contrib/excon/integration.rb
ddtrace-0.39.0 lib/ddtrace/contrib/excon/integration.rb
ddtrace-0.38.0 lib/ddtrace/contrib/excon/integration.rb
ddtrace-0.37.0 lib/ddtrace/contrib/excon/integration.rb
ddtrace-0.36.0 lib/ddtrace/contrib/excon/integration.rb
ddtrace-0.35.2 lib/ddtrace/contrib/excon/integration.rb
ddtrace-0.35.1 lib/ddtrace/contrib/excon/integration.rb