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

#dependency_collectionBoolean

Whether the bundled Ruby gems as reported through telemetry.

Returns:

  • (Boolean)

Defaults to:

  • DD_TELEMETRY_DEPENDENCY_COLLECTION_ENABLED environment variable, otherwise true.



705
706
707
# File 'lib/datadog/core/configuration/settings.rb', line 705

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.



717
718
719
# File 'lib/datadog/core/configuration/settings.rb', line 717

def enabled
  @enabled
end