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
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
DEV-2.0: Breaking changes for removal.
-
#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.
32 33 34 |
# File 'lib/datadog/tracing/contrib/rails/configuration/settings.rb', line 32 def analytics_enabled @analytics_enabled end |
#analytics_sample_rate ⇒ Object
Returns the value of attribute analytics_sample_rate.
41 42 43 |
# File 'lib/datadog/tracing/contrib/rails/configuration/settings.rb', line 41 def analytics_sample_rate @analytics_sample_rate end |
#distributed_tracing ⇒ Object
Returns the value of attribute distributed_tracing.
51 52 53 |
# File 'lib/datadog/tracing/contrib/rails/configuration/settings.rb', line 51 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
DEV-2.0: Breaking changes for removal.
57 58 59 |
# File 'lib/datadog/tracing/contrib/rails/configuration/settings.rb', line 57 def exception_controller @exception_controller end |
#middleware ⇒ Object
Returns the value of attribute middleware.
68 69 70 |
# File 'lib/datadog/tracing/contrib/rails/configuration/settings.rb', line 68 def middleware @middleware end |
#middleware_names ⇒ Object
Returns the value of attribute middleware_names.
69 70 71 |
# File 'lib/datadog/tracing/contrib/rails/configuration/settings.rb', line 69 def middleware_names @middleware_names end |
#request_queuing ⇒ Object
Returns the value of attribute request_queuing.
53 54 55 |
# File 'lib/datadog/tracing/contrib/rails/configuration/settings.rb', line 53 def request_queuing @request_queuing end |
#template_base_path ⇒ Object
Returns the value of attribute template_base_path.
70 71 72 |
# File 'lib/datadog/tracing/contrib/rails/configuration/settings.rb', line 70 def template_base_path @template_base_path end |