Sha256: 89eb79799e0c3436bea8e3547944a131ec99d47f563255b568935bd46aefea95

Contents?: true

Size: 669 Bytes

Versions: 9

Compression:

Stored size: 669 Bytes

Contents

require 'ddtrace/contrib/integration'
require 'ddtrace/contrib/ethon/configuration/settings'
require 'ddtrace/contrib/ethon/patcher'

module Datadog
  module Contrib
    module Ethon
      # Description of Ethon integration
      class Integration
        include Contrib::Integration
        register_as :ethon

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

        def self.present?
          super && defined?(::Ethon::Easy)
        end

        def default_configuration
          Configuration::Settings.new
        end

        def patcher
          Patcher
        end
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 2 rubygems

Version Path
ls-trace-0.1.2 lib/ddtrace/contrib/ethon/integration.rb
ddtrace-0.32.0 lib/ddtrace/contrib/ethon/integration.rb
ddtrace-0.31.1 lib/ddtrace/contrib/ethon/integration.rb
ddtrace-0.31.0 lib/ddtrace/contrib/ethon/integration.rb
ddtrace-0.30.1 lib/ddtrace/contrib/ethon/integration.rb
ddtrace-0.30.0 lib/ddtrace/contrib/ethon/integration.rb
ddtrace-0.29.1 lib/ddtrace/contrib/ethon/integration.rb
ls-trace-0.1.1 lib/ddtrace/contrib/ethon/integration.rb
ddtrace-0.29.0 lib/ddtrace/contrib/ethon/integration.rb