Sha256: fa2fc41cb5dd884010995e5778241a000e848d400f05bcade36f1ad213abb511

Contents?: true

Size: 717 Bytes

Versions: 9

Compression:

Stored size: 717 Bytes

Contents

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

module Datadog
  module Contrib
    module RestClient
      # Description of RestClient integration
      class Integration
        include Contrib::Integration
        register_as :rest_client

        def self.version
          Gem.loaded_specs['rest-client'] && Gem.loaded_specs['rest-client'].version
        end

        def self.present?
          super && defined?(::RestClient::Request)
        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/rest_client/integration.rb
ddtrace-0.32.0 lib/ddtrace/contrib/rest_client/integration.rb
ddtrace-0.31.1 lib/ddtrace/contrib/rest_client/integration.rb
ddtrace-0.31.0 lib/ddtrace/contrib/rest_client/integration.rb
ddtrace-0.30.1 lib/ddtrace/contrib/rest_client/integration.rb
ddtrace-0.30.0 lib/ddtrace/contrib/rest_client/integration.rb
ddtrace-0.29.1 lib/ddtrace/contrib/rest_client/integration.rb
ls-trace-0.1.1 lib/ddtrace/contrib/rest_client/integration.rb
ddtrace-0.29.0 lib/ddtrace/contrib/rest_client/integration.rb