Class: Datadog::Tracing::Contrib::Rails::Configuration::Settings
- Inherits:
-
Configuration::Settings
- Object
- Configuration::Settings
- Datadog::Tracing::Contrib::Rails::Configuration::Settings
- Defined in:
- lib/datadog/tracing/contrib/rails/configuration/settings.rb
Overview
Custom settings for the Rails integration
Constant Summary
Constants inherited from Configuration::Settings
Configuration::Settings::DEPRECATION_WARN_ONLY_ONCE
Instance Attribute Summary collapse
-
#analytics_enabled ⇒ Object
Returns the value of attribute analytics_enabled.
-
#analytics_sample_rate ⇒ Object
Returns the value of attribute analytics_sample_rate.
-
#distributed_tracing ⇒ Object
Returns the value of attribute distributed_tracing.
-
#enabled ⇒ Object
Returns the value of attribute enabled.
-
#exception_controller ⇒ Object
Returns the value of attribute exception_controller.
-
#middleware ⇒ Object
Returns the value of attribute middleware.
-
#middleware_names ⇒ Object
Returns the value of attribute middleware_names.
-
#request_queuing ⇒ Object
Returns the value of attribute request_queuing.
-
#template_base_path ⇒ Object
Returns the value of attribute template_base_path.
Attributes inherited from Configuration::Settings
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Settings
constructor
A new instance of Settings.
Methods inherited from Configuration::Settings
Methods included from Core::Configuration::Base
Constructor Details
#initialize(options = {}) ⇒ Settings
Returns a new instance of Settings.
13 14 15 16 17 18 19 20 21 22 23 24 |
# File 'lib/datadog/tracing/contrib/rails/configuration/settings.rb', line 13 def initialize( = {}) super() # NOTE: Eager load these # Rails integration is responsible for orchestrating other integrations. # When using environment variables, settings will not be automatically # filled because nothing explicitly calls them. They must though, so # integrations like ActionPack can receive the value as it should. # Trigger these manually to force an eager load and propagate them. analytics_enabled analytics_sample_rate end |
Instance Attribute Details
#analytics_enabled ⇒ Object
Returns the value of attribute analytics_enabled.
31 32 33 |
# File 'lib/datadog/tracing/contrib/rails/configuration/settings.rb', line 31 def analytics_enabled @analytics_enabled end |
#analytics_sample_rate ⇒ Object
Returns the value of attribute analytics_sample_rate.
40 41 42 |
# File 'lib/datadog/tracing/contrib/rails/configuration/settings.rb', line 40 def analytics_sample_rate @analytics_sample_rate end |
#distributed_tracing ⇒ Object
Returns the value of attribute distributed_tracing.
49 50 51 |
# File 'lib/datadog/tracing/contrib/rails/configuration/settings.rb', line 49 def distributed_tracing @distributed_tracing end |
#enabled ⇒ Object
Returns the value of attribute enabled.
26 27 28 |
# File 'lib/datadog/tracing/contrib/rails/configuration/settings.rb', line 26 def enabled @enabled end |
#exception_controller ⇒ Object
Returns the value of attribute exception_controller.
53 54 55 |
# File 'lib/datadog/tracing/contrib/rails/configuration/settings.rb', line 53 def exception_controller @exception_controller end |
#middleware ⇒ Object
Returns the value of attribute middleware.
60 61 62 |
# File 'lib/datadog/tracing/contrib/rails/configuration/settings.rb', line 60 def middleware @middleware end |
#middleware_names ⇒ Object
Returns the value of attribute middleware_names.
61 62 63 |
# File 'lib/datadog/tracing/contrib/rails/configuration/settings.rb', line 61 def middleware_names @middleware_names end |
#request_queuing ⇒ Object
Returns the value of attribute request_queuing.
51 52 53 |
# File 'lib/datadog/tracing/contrib/rails/configuration/settings.rb', line 51 def request_queuing @request_queuing end |
#template_base_path ⇒ Object
Returns the value of attribute template_base_path.
62 63 64 |
# File 'lib/datadog/tracing/contrib/rails/configuration/settings.rb', line 62 def template_base_path @template_base_path end |