Class: Datadog::Tracing::Contrib::MongoDB::Configuration::Settings

Inherits:
Configuration::Settings show all
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

Method Summary

Methods inherited from Configuration::Settings

#[], #[]=, #configure

Methods included from Core::Configuration::Base

included

Instance Attribute Details

#analytics_sample_rateObject

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

#enabledObject

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_commandObject

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_serviceObject

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

#quantizeObject

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_nameObject

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