pub struct Domain {
pub receiver_port: u16,
pub receiver_socket: Option<String>,
pub non_local_traffic: ConfigValue<bool>,
pub proxy_destination: String,
}Expand description
Resolved APM configuration.
Fields§
§receiver_port: u16TCP port the trace receiver listens on (apm_config.receiver_port).
0 disables the TCP listener.
receiver_socket: Option<String>Unix domain socket path the trace receiver listens on (apm_config.receiver_socket).
None disables the Unix domain socket listener. Defaults to /var/run/datadog/apm.socket on Linux and AIX,
matching the trace-agent, and to disabled elsewhere.
non_local_traffic: ConfigValue<bool>Whether the TCP listener accepts traffic from other hosts (apm_config.apm_non_local_traffic).
When true, the listener binds every interface, overriding bind_host, as the trace-agent does.
The trace-agent also binds every interface when it runs in a container and neither bind_host nor
apm_config.apm_non_local_traffic was set explicitly. That fallback isn’t part of the configuration, so the
provenance is kept for the APM relay to apply it.
proxy_destination: StringWhere the relocated trace-agent listens, as a URL (data_plane.experimental.apm.proxy_destination).
Either http://host:port or unix:///path/to/socket. Every request is forwarded
here. Defaults to http://127.0.0.1:8127. (not in Datadog Agent config schema)
Over a Unix domain socket, the trace-agent attributes a request that carries no container headers to the peer
of the connection, which is ADP. That covers requests from TCP clients that send no container headers, and from
Unix domain socket clients whose container ADP couldn’t resolve. An http:// destination leaves their origin
unknown instead.