Sha256: 8d6b24d1a70ddbf1e7b9b08e45b652c10789f1f4db57cf51f6d04afa0b128c96

Contents?: true

Size: 861 Bytes

Versions: 10

Compression:

Stored size: 861 Bytes

Contents

require 'ddtrace/contrib/configuration/settings'

module Datadog
  module Contrib
    module Rails
      module Configuration
        # Custom settings for the Rails integration
        class Settings < Contrib::Configuration::Settings
          option :cache_service
          option :controller_service
          option :database_service, depends_on: [:service_name] do |value|
            value.tap do
              # Update ActiveRecord service name too
              Datadog.configuration[:active_record][:service_name] = value
            end
          end
          option :distributed_tracing, default: false
          option :exception_controller, default: nil
          option :middleware, default: true
          option :middleware_names, default: false
          option :template_base_path, default: 'views/'
        end
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
ddtrace-0.19.1 lib/ddtrace/contrib/rails/configuration/settings.rb
ddtrace-0.19.0 lib/ddtrace/contrib/rails/configuration/settings.rb
ddtrace-0.18.3 lib/ddtrace/contrib/rails/configuration/settings.rb
ddtrace-0.18.2 lib/ddtrace/contrib/rails/configuration/settings.rb
ddtrace-0.18.1 lib/ddtrace/contrib/rails/configuration/settings.rb
ddtrace-0.18.0 lib/ddtrace/contrib/rails/configuration/settings.rb
ddtrace-0.17.3 lib/ddtrace/contrib/rails/configuration/settings.rb
ddtrace-0.17.2 lib/ddtrace/contrib/rails/configuration/settings.rb
ddtrace-0.17.1 lib/ddtrace/contrib/rails/configuration/settings.rb
ddtrace-0.17.0 lib/ddtrace/contrib/rails/configuration/settings.rb