---
isPrivate: true
title: APM & Continuous Profiler with Agent v5
description: Datadog, the leading service for cloud-scale monitoring.
breadcrumbs: Docs > APM > Tracing Guides > APM & Continuous Profiler with Agent v5
---

> For the complete documentation index, see [llms.txt](https://docs.datadoghq.com/llms.txt).

# APM & Continuous Profiler with Agent v5

## Getting started{% #getting-started %}

APM is available with Datadog Agent versions 5.11+ as part of the one-line installation command for the Linux and Docker Agents. [Mac](https://github.com/DataDog/datadog-agent/tree/main/docs/trace-agent#run-on-macos) and [Windows](https://github.com/DataDog/datadog-agent/tree/main/docs/trace-agent#run-on-windows) users must perform a manual installation of the APM Agent (also known as Trace Agent) through a separate installation process.

The Agent can be enabled by including the following in your [Datadog Agent configuration file](https://docs.datadoghq.com/agent/faq/where-is-the-configuration-file-for-the-agent.md):

```
apm_enabled: true
```

{% alert level="info" %}
APM is enabled by default after Datadog Agent 5.13 (on Linux and Docker), but can be disabled by adding the parameter: `apm_enabled: no` in your Datadog Agent configuration file.
{% /alert %}

### Installing the Agent{% #installing-the-agent %}

[Tracing metrics](https://docs.datadoghq.com/tracing/glossary.md#trace-metrics) are sent to the Datadog through the Datadog Agent. To enable tracing:

Install the latest [Datadog Agent](https://app.datadoghq.com/account/settings/agent/latest) (version 5.11.0+ is required).

### Running the Agent in Docker{% #running-the-agent-in-docker %}

To trace applications in Docker containers, use the [docker-dd-agent](https://gcr.io/datadoghq/docker-dd-agent) image (tagged version 11.0.5110+) and enable tracing by passing `DD_APM_ENABLED=true` as an environment variable.

For additional information, reference [the Docker page](https://docs.datadoghq.com/tracing/docker.md).

### Instrument your application{% #instrument-your-application %}

Select one of the following supported languages:

- [Java language instrumentation.](https://docs.datadoghq.com/tracing/setup/java.md)
- [C++ language instrumentation.](https://docs.datadoghq.com/tracing/setup/cpp.md)
- [Python language instrumentation.](https://docs.datadoghq.com/tracing/setup/python.md)
- [Ruby language instrumentation](https://docs.datadoghq.com/tracing/setup/ruby.md)
- [Go language instrumentation.](https://docs.datadoghq.com/tracing/setup/go.md)
- [Node.js language instrumentation.](https://docs.datadoghq.com/tracing/setup/nodejs.md)
- [.NET language instrumentation.](https://docs.datadoghq.com/tracing/setup/dotnet.md)
- [PHP language instrumentation.](https://docs.datadoghq.com/tracing/setup/php.md)
 
To instrument an application written in a language that does not yet have official library support, reference the [Tracing API](https://docs.datadoghq.com/tracing/guide/send_traces_to_agent_by_api.md).

## Configuration{% #configuration %}

The Datadog Agent uses the configuration file for both infrastructure monitoring and APM configuration options.

Additionally, some configuration options may be set as environment variables. Note that options set as environment variables overrides the settings defined in the configuration file.

| File setting       | Environment variable  | Description                                                                                                      |
| ------------------ | --------------------- | ---------------------------------------------------------------------------------------------------------------- |
| `apm_enabled`      | `DD_APM_ENABLED`      | The Datadog Agent accepts trace metrics when the value is set to `true`. The default value is `true`.            |
| `receiver_port`    | `DD_RECEIVER_PORT`    | The port that the Datadog Agent's trace receiver should listen on. The default value is `8126`.                  |
| `connection_limit` | `DD_CONNECTION_LIMIT` | The number of unique client connections to allow during one 30 second lease period. The default value is `2000`. |
| `resource`         | `DD_IGNORE_RESOURCE`  | An exclude list of regular expressions to filter out traces by their resource name.                              |

For more information about the Datadog Agent, see the [dedicated doc page](https://docs.datadoghq.com/agent.md) or refer to the [`datadog.conf.example` file](https://github.com/DataDog/dd-agent/blob/master/datadog.conf.example).

### Trace search{% #trace-search %}

Trace search is available for Agent 5.25.0+. For more information, see the set up instructions in the main [APM documentation](https://docs.datadoghq.com/tracing/setup.md?tab=agent5250#trace-search).

## Troubleshooting{% #troubleshooting %}

Need help? Contact [Datadog support](https://docs.datadoghq.com/help/).
