Class: Datadog::Core::Configuration::Settings::DSL::Telemetry

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

Overview

Client-side telemetry configuration

Instance Attribute Summary collapse

Instance Attribute Details

#debugBoolean

For internal use only. Enables telemetry debugging through the Datadog platform.

Returns:

  • (Boolean)

Defaults to:

  • false.



935
936
937
# File 'lib/datadog/core/configuration/settings.rb', line 935

def debug
  @debug
end

#dependency_collectionBoolean

Whether the bundled Ruby gems as reported through telemetry.

Returns:

  • (Boolean)

Defaults to:

  • DD_TELEMETRY_DEPENDENCY_COLLECTION_ENABLED environment variable, otherwise true.



793
794
795
# File 'lib/datadog/core/configuration/settings.rb', line 793

def dependency_collection
  @dependency_collection
end

#enabledBoolean

Enable telemetry collection. This allows telemetry events to be emitted to the telemetry API.

Returns:

  • (Boolean)

Defaults to:

  • DD_INSTRUMENTATION_TELEMETRY_ENABLED environment variable, otherwise true. Can be disabled as documented here. By default, telemetry is disabled in development environments.



805
806
807
# File 'lib/datadog/core/configuration/settings.rb', line 805

def enabled
  @enabled
end

#log_collection_enabledBoolean

Enable log collection for telemetry. Log collection only works when telemetry is enabled and logs are enabled.

Returns:

  • (Boolean)

Defaults to:

  • DD_TELEMETRY_LOG_COLLECTION_ENABLED environment variable, otherwise true.



924
925
926
# File 'lib/datadog/core/configuration/settings.rb', line 924

def log_collection_enabled
  @log_collection_enabled
end

#metrics_enabledBoolean

Enable metrics collection for telemetry. Metrics collection only works when telemetry is enabled and metrics are enabled.

Returns:

  • (Boolean)

Defaults to:

  • DD_TELEMETRY_METRICS_ENABLED environment variable, otherwise true.



844
845
846
# File 'lib/datadog/core/configuration/settings.rb', line 844

def metrics_enabled
  @metrics_enabled
end