Trace Agent
The Trace Agent is the receiving point for traces that the Datadog Agent starts as a process separate from its main one. It receives on the host or container the traces sent by the SDK built into the application and sends them on to Datadog.
Overview
When you have set up APM but traces do not arrive, this process is one of the first places to suspect. The official documentation also calls it the APM Agent, and in the Windows service list it appears under the name datadog-trace-agent. Because the language-side SDKs also have names containing the word agent, if you fix settings while mixing up which one is being discussed, you end up fixing the wrong place. It is the concept to keep in mind when you change the receiving port, or when you stop or replace the Agent.
A receiving point that runs as a separate process inside the Agent
Besides its main process, the Datadog Agent starts separate processes depending on the settings in datadog.yaml. One of them collects traces; the official documentation calls it the APM Agent, and it is enabled by default (as of October 2026; Source: Agent Architecture). On Windows it appears in the service list under the name datadog-trace-agent. The Pod of an Agent installed on Kubernetes has a container dedicated to the Trace Agent (Source: Ingestion Mechanisms). The role of the Agent as a whole is left to Datadog Agent.
The Java agent and the Trace Agent are different things
There are two things with agent in their names, and they differ in both where they run and what they do.
| Point of comparison | Language-side SDK | Trace Agent |
|---|---|---|
| Example names | Java's dd-java-agent.jar / Python's ddtrace | APM Agent / datadog-trace-agent |
| Where it runs | Inside the application's process | Inside the Datadog Agent running on the host or container |
| Role | Creates spans and sends them to the Trace Agent | Receives from the SDK and sends on to Datadog |
| Where its settings live | The application's environment variables and JVM arguments | The Trace Collection section of datadog.yaml |
The Java SDK is loaded with the -javaagent JVM argument, so the word agent appears in its file name, but it runs inside the application's process (Source: Tracing Java Applications). The differences in how to build in the SDK are left to Auto-Instrumentation. Whether a problem is solved by rewriting JVM arguments or by fixing the Agent's settings depends on which column of this table it belongs to.
If you change the receiving port, match it on the SDK side too
In the list of inbound traffic, TCP port 8126 is listed as the APM receiver, and both traces and the profiler go through it (as of October 2026; Source: Network Traffic). The number can be changed with receiver_port in datadog.yaml or with the environment variable DD_APM_RECEIVER_PORT. The official documentation cautions that if you change it, you should set the SDK's destination to the same number. For the Python SDK, the relevant settings are DD_TRACE_AGENT_PORT or DD_TRACE_AGENT_URL. When no host is specified, the places it looks are, in order, DD_AGENT_HOST, the Unix socket /var/run/datadog/apm.socket, and localhost (Source: Configuring the Python SDK).
If you stop it, what stops arriving and what keeps arriving?
Even if only the Trace Agent stops, metrics and logs keep arriving because the main process collects and sends them. The DogStatsD receiving point is also on the main process side (as of October 2026; Source: Agent Architecture). What stops arriving is the traces and profiles that were received on port 8126. Setting receiver_port to 0 also stops the HTTP receiving point, giving the same state even while the process is running (Source: Network Traffic). Because it shows up as the host metric graphs looking as usual while only the APM screens go empty, you cannot conclude that the Agent is fine just because metrics are arriving.
Compare the destination and port pair in two places
One way to proceed when traces do not arrive is to put the values on the receiving side and the sending side side by side. The receiving side is receiver_port in datadog.yaml, and the sending side is DD_TRACE_AGENT_PORT or DD_TRACE_AGENT_URL in the application's environment variables. Check that it is running with datadog-trace-agent in the service list on Windows, or with sudo datadog-agent status on Linux (as of October 2026; Source: Agent Commands). In the status output, Status and Receiver in the APM Agent section are the clues (Source: APM Connection Errors). From Agent 7.80.0 on Linux, not showing Running while it has not yet received a single trace is not necessarily an error. If the values are out of line, match the SDK side to the receiving point; if they line up, investigate starting from the receiving process.