Class: Datadog::Core::Configuration::Settings::DSL::Diagnostics

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

Overview

Datadog diagnostic settings.

Enabling these surfaces debug information that can be helpful to diagnose issues related to Datadog internals.

Defined Under Namespace

Classes: StartupLogs

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#debugBoolean

Outputs all spans created by the host application to Datadog.logger.

This option is very verbose! It's only recommended for non-production environments.

This option is helpful when trying to understand what information the Datadog features are sending to the Agent or backend.

Returns:

  • (Boolean)

Defaults to:

  • DD_TRACE_DEBUG environment variable, otherwise false



124
125
126
# File 'lib/datadog/core/configuration/settings.rb', line 124

def debug
  @debug
end

Instance Method Details

#startup_logsDatadog::Core::Configuration::Settings::DSL::Diagnostics::StartupLogs

Tracer startup debug log statement configuration.



146
147
148
149
150
151
152
153
154
155
156
157
158
159
# File 'lib/datadog/core/configuration/settings.rb', line 146

settings :startup_logs do
  # Enable startup logs collection.
  #
  # If `nil`, defaults to logging startup logs when `datadog` detects that the application
  # is *not* running in a development environment.
  #
  # @default `DD_TRACE_STARTUP_LOGS` environment variable, otherwise `nil`
  # @return [Boolean, nil]
  option :enabled do |o|
    o.env Datadog::Core::Configuration::Ext::Diagnostics::ENV_STARTUP_LOGS_ENABLED
    # Defaults to nil as we want to know when the default value is being used
    o.type :bool, nilable: true
  end
end