Class: Datadog::Core::Configuration::Settings::DSL::Apm::Tracing

Inherits:
Object
  • Object
show all
Defined in:
lib/datadog/core/configuration/settings.rb

Overview

Tracing as a transport

Instance Attribute Summary collapse

Instance Attribute Details

#enabledBoolean

Enables tracing as transport. Disabling it will set sampling priority to -1 (FORCE_DROP) on most traces, (which tells to the agent to drop these traces) except heartbeat ones (1 per minute) and manually kept ones (sampling priority to 2) (e.g. appsec events)

This is different than DD_TRACE_ENABLED, which completely disables tracing (sends no trace at all), while this will send heartbeat traces (1 per minute) so that the service is considered alive in the backend.

Returns:

  • (Boolean)

Defaults to:

  • DD_APM_TRACING_ENABLED environment variable, otherwise true



976
977
978
# File 'lib/datadog/core/configuration/settings.rb', line 976

def enabled
  @enabled
end