Class: Datadog::Core::Configuration::Settings::DSL::Agent

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

Overview

Datadog Agent configuration.

Instance Attribute Summary collapse

Instance Attribute Details

#hostString?

Agent hostname or IP.

Returns:

  • (String, nil)

Defaults to:

  • DD_AGENT_HOST environment variable, otherwise 127.0.0.1



59
60
61
# File 'lib/datadog/core/configuration/settings.rb', line 59

def host
  @host
end

#portString?

Agent APM TCP port.

Returns:

  • (String, nil)

See Also:

Defaults to:

  • DD_TRACE_AGENT_PORT environment variable, otherwise 8126



65
66
67
# File 'lib/datadog/core/configuration/settings.rb', line 65

def port
  @port
end

#timeout_secondsInteger?

Agent APM Timeout.

Returns:

  • (Integer, nil)

See Also:

Defaults to:

  • DD_TRACE_AGENT_TIMEOUT_SECONDS environment variable, otherwise 30 for http, '1' for UDS



78
79
80
# File 'lib/datadog/core/configuration/settings.rb', line 78

def timeout_seconds
  @timeout_seconds
end

#uds_pathString?

Agent unix domain socket path. Agent connects via HTTP by default, but will use UDS if this is set or if unix scheme defined in DD_TRACE_AGENT_URL.

Returns:

  • (String, nil)

Defaults to:

  • defined in DD_TRACE_AGENT_URL environment variable, otherwise '/var/run/datadog/apm.socket'



85
86
87
# File 'lib/datadog/core/configuration/settings.rb', line 85

def uds_path
  @uds_path
end

#use_sslBoolean?

Agent APM SSL. Only applies to http connections.

Returns:

  • (Boolean, nil)

See Also:

Defaults to:

  • defined as part of DD_TRACE_AGENT_URL environment variable, otherwise false



72
73
74
# File 'lib/datadog/core/configuration/settings.rb', line 72

def use_ssl
  @use_ssl
end