Sending Traces to Datadog

In most environments, configuring your application to send traces to Datadog involves two steps:

  1. Configuring the Datadog Agent for APM.

  2. Adding the Datadog Tracing Library to your code.

Traces are sent from your application instrumented with a Datadog Tracing Library to the Datadog Agent, and from the Datadog Agent to the Datadog backend to be shown in the UI.

The APM pipeline

In containerized, serverless, or certain other environments, there may be APM-specific configurations required on both the Tracer and Agent to ensure that traces can be properly received, so ensure you have followed instructions for both components.

For setup instructions, select your language:

Java
Python
Ruby
Go
Node.js
PHP
C++
.Net
.Net

To instrument an application written in a language that does not yet have official library support, see the list of community tracing libraries.

After you set up tracing, you are one step from accessing profiling data by enabling Continuous Profiler. Profiler is available for Java, Python, Go, Ruby, Node.js, (beta) PHP, (beta) .NET, and (beta) Linux.

APM Setup Tutorials

The following tutorials provide a walk-through of setting up distributed tracing on a sample Python application on various infrastructure scenarios, with both automatic and custom instrumentation: