Sha256: 7e9db8ad12da2f7f82f9e28387b34ec6d3b5cc88070ff1dacb9d0daf5d48016c

Contents?: true

Size: 854 Bytes

Versions: 35

Compression:

Stored size: 854 Bytes

Contents

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

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

        register_as :rails, auto_patch: false

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

        def self.present?
          defined?(::Rails)
        end

        def self.compatible?
          return false if ENV['DISABLE_DATADOG_RAILS']
          super && defined?(::Rails::VERSION) && ::Rails::VERSION::MAJOR.to_i >= 3
        end

        def default_configuration
          Configuration::Settings.new
        end

        def patcher
          Patcher
        end
      end
    end
  end
end

Version data entries

35 entries across 35 versions & 2 rubygems

Version Path
ls-trace-0.1.2 lib/ddtrace/contrib/rails/integration.rb
ddtrace-0.32.0 lib/ddtrace/contrib/rails/integration.rb
ddtrace-0.31.1 lib/ddtrace/contrib/rails/integration.rb
ddtrace-0.31.0 lib/ddtrace/contrib/rails/integration.rb
ddtrace-0.30.1 lib/ddtrace/contrib/rails/integration.rb
ddtrace-0.30.0 lib/ddtrace/contrib/rails/integration.rb
ddtrace-0.29.1 lib/ddtrace/contrib/rails/integration.rb
ddtrace-0.26.1 lib/ddtrace/contrib/rails/integration.rb
ls-trace-0.1.1 lib/ddtrace/contrib/rails/integration.rb
ddtrace-0.29.0 lib/ddtrace/contrib/rails/integration.rb
ddtrace-0.28.0 lib/ddtrace/contrib/rails/integration.rb
ddtrace-0.27.0 lib/ddtrace/contrib/rails/integration.rb
ddtrace-0.26.0 lib/ddtrace/contrib/rails/integration.rb
ddtrace-0.25.1 lib/ddtrace/contrib/rails/integration.rb
ddtrace-0.25.0 lib/ddtrace/contrib/rails/integration.rb
ddtrace-0.24.0 lib/ddtrace/contrib/rails/integration.rb
ddtrace-0.23.3 lib/ddtrace/contrib/rails/integration.rb
ddtrace-0.23.2 lib/ddtrace/contrib/rails/integration.rb
ddtrace-0.23.1 lib/ddtrace/contrib/rails/integration.rb
ddtrace-0.23.0 lib/ddtrace/contrib/rails/integration.rb