Class: Datadog::Tracing::Contrib::MongoDB::Configuration::Settings
- Inherits:
-
Configuration::Settings
- Object
- Configuration::Settings
- Datadog::Tracing::Contrib::MongoDB::Configuration::Settings
- Defined in:
- lib/datadog/tracing/contrib/mongodb/configuration/settings.rb
Overview
Custom settings for the MongoDB integration
Constant Summary collapse
- DEFAULT_QUANTIZE =
{ show: [:collection, :database, :operation] }.freeze
Instance Attribute Summary collapse
-
#analytics_sample_rate ⇒ Object
Returns the value of attribute analytics_sample_rate.
-
#enabled ⇒ Object
Returns the value of attribute enabled.
-
#json_command ⇒ Object
Serializes the command to JSON format, which is the desired format for the agent and Datadog UI.
-
#peer_service ⇒ Object
Returns the value of attribute peer_service.
-
#quantize ⇒ Object
Returns the value of attribute quantize.
-
#service_name ⇒ Object
Returns the value of attribute service_name.
Method Summary
Methods inherited from Configuration::Settings
Methods included from Core::Configuration::Base
Instance Attribute Details
#analytics_sample_rate ⇒ Object
Returns the value of attribute analytics_sample_rate.
29 30 31 |
# File 'lib/datadog/tracing/contrib/mongodb/configuration/settings.rb', line 29 def analytics_sample_rate @analytics_sample_rate end |
#enabled ⇒ Object
Returns the value of attribute enabled.
16 17 18 |
# File 'lib/datadog/tracing/contrib/mongodb/configuration/settings.rb', line 16 def enabled @enabled end |
#json_command ⇒ Object
Serializes the command to JSON format, which is the desired format for the agent and Datadog UI. Setting this to false is deprecated and does not have any advantages.
54 55 56 |
# File 'lib/datadog/tracing/contrib/mongodb/configuration/settings.rb', line 54 def json_command @json_command end |
#peer_service ⇒ Object
Returns the value of attribute peer_service.
47 48 49 |
# File 'lib/datadog/tracing/contrib/mongodb/configuration/settings.rb', line 47 def peer_service @peer_service end |
#quantize ⇒ Object
Returns the value of attribute quantize.
35 36 37 |
# File 'lib/datadog/tracing/contrib/mongodb/configuration/settings.rb', line 35 def quantize @quantize end |
#service_name ⇒ Object
Returns the value of attribute service_name.
37 38 39 |
# File 'lib/datadog/tracing/contrib/mongodb/configuration/settings.rb', line 37 def service_name @service_name end |