Class: Datadog::Core::Configuration::Settings::DSL::Remote

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

Overview

Remote configuration

Instance Attribute Summary collapse

Instance Attribute Details

#boot_timeout_secondsFloat

Tune remote configuration boot timeout. Early operations such as requests are blocked until RC is ready. In order to not block the application indefinitely a timeout is enforced allowing requests to proceed with the local configuration.

Returns:

  • (Float)

Defaults to:

  • DD_REMOTE_CONFIG_BOOT_TIMEOUT environment variable, otherwise 1.0 seconds.



826
827
828
# File 'lib/datadog/core/configuration/settings.rb', line 826

def boot_timeout_seconds
  @boot_timeout_seconds
end

#enabledBoolean

Enable remote configuration. This allows fetching of remote configuration for live updates.

Returns:

  • (Boolean)

Defaults to:

  • DD_REMOTE_CONFIGURATION_ENABLED environment variable, otherwise true. By default, remote configuration is disabled in development environments.



791
792
793
# File 'lib/datadog/core/configuration/settings.rb', line 791

def enabled
  @enabled
end

#serviceString?

Declare service name to bind to remote configuration. Use when DD_SERVICE does not match the correct integration for which remote configuration applies.

Returns:

  • (String, nil)

Defaults to:

  • nil.



838
839
840
# File 'lib/datadog/core/configuration/settings.rb', line 838

def service
  @service
end