Which parameter should be added to tracer.config(...) in ddtrace for Python to send traces through UDS?

Prepare for the Datadog Fundamentals Test with flashcards and multiple choice questions, each with hints and explanations. Get ready for your exam!

To send traces through Unix Domain Sockets (UDS) using the ddtrace library in Python, the parameter that should be added to tracer.config(...) is uds_path. This parameter specifically defines the path to the Unix Domain Socket that will be used as the communication channel for sending trace information to the Datadog Agent, enabling the application to efficiently transmit data without relying on network protocols like TCP or UDP.

Using UDS can improve performance and security in certain environments, particularly in microservices running on the same host, as it minimizes overhead such as network traffic.

In contrast, other parameters mentioned serve different purposes. For instance, statsd_namespace is intended to aggregate metrics under a specific namespace in the StatsD, while statsd_constant_tags allows for tagging metrics consistently. These do not relate to the transmission of traces through UDS. Similarly, service_check_name is used to define the name of service checks and is not relevant for trace transmission. Therefore, uds_path is the correct choice for establishing a UDS connection for traces in the Datadog Python integration.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy