Datadog-APM-and-Distributed-Tracing-Fundamentals practice question 18 of 25

What environment variable should you use if you need to send traces to a different socket, host, or port?

Full set: 180 questions
Answer options
A: DD_TRACE_AGENT_URL Correct answer
B: DD_TRACE_SOCKET_URL
C: DD_TRACE_HOST_URL
D: DD_TRACE_PORT_URL
Correct Answer:
A. DD_TRACE_AGENT_URL
Explanation

DDTRACEAGENTURL overrides the default Agent location and accepts schemes tcp://host:port or unix:///path/to/socket, allowing redirection to any socket, host, or port.

Why Incorrect

B. Not a recognized Datadog tracer variable.
C. No such environment variable in Datadog instrumentation.
D. Port alone is insufficient; variable is unsupported.

References

1. Datadog Docs – “Configuring the tracer” (https://docs.datadoghq.com/tracing/sendtracestoagent/#configuring-the-tracer, ¶2-3).

2. Datadog Java Tracer Env-vars, “DDTRACEAGENTURL” description (https://docs.datadoghq.com/tracing/setupoverview/setup/java/?tab=containers, Section Env-vars).

Scroll to Top