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



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

def host
  @host
end

#portString?

Agent APM TCP port.

Returns:

  • (String, nil)

See Also:

Defaults to:

  • DD_TRACE_AGENT_PORT environment variable, otherwise 8126



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

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



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

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'



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

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



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

def use_ssl
  @use_ssl
end