Skip to content

Adaptive sampling GA Docs #30330

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jul 10, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions content/en/tracing/trace_pipeline/adaptive_sampling.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,6 @@ further_reading:
text: "Ingestion Controls"
---

{{< callout url="https://www.datadoghq.com/private-beta/resource-based-sampling-adaptive-sampling/" header="Request access to the Preview!" >}}
Adaptive sampling is in Preview. To request access, complete the form.
{{< /callout >}}

## Overview

Datadog **adaptive sampling** helps you capture more relevant traces while remaining close to a specific budget (ingested gigabytes).
Expand Down Expand Up @@ -116,6 +112,8 @@ The table includes:
- `CONFIGURED REMOTE`: Remote sampling rule set from the Datadog UI.
- `ADAPTIVE REMOTE`: Adaptive sampling rules set by Datadog.

Once a service is onboarded to adaptive sampling, the sampling rates are adjusted and recomputed every 10 minutes.

### Onboard a service to adaptive sampling

To onboard a service to adaptive sampling:
Expand Down
20 changes: 9 additions & 11 deletions content/en/tracing/trace_pipeline/ingestion_controls.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,16 +124,13 @@ See the **Datadog Agent and tracing library versions** your service is using. Co

{{< img src="tracing/trace_indexing_and_ingestion/agent_tracer_version.png" style="width:90%;" alt="Agent and tracing library versions" >}}

**Note**: You need to upgrade the Agent to v6.34 or v7.34 for the version information to be reported.

### Configure the service ingestion rates by resource

When configuring sampling rates for a service by resource name, you can use two main strategies:
### Managing services' sampling rates

To control sampling rates for a service, you might want to use:
- **Adaptive sampling**: Automatically adjust sampling rates to match a configured monthly ingested volume budget.
- **Custom sampling**: Manually set explicit sampling rates by resource.
- **Resource-based sampling**: Manually set explicit sampling rates by resource.

Configurations for these strategies can be applied **Remotely** through the Datadog UI. This method allows changes to take effect immediately without redeploying your service. For **Custom Sampling**, you also have the option to apply configurations **Locally** by updating your service's configuration files and redeploying.
Configurations for these strategies can be applied **Remotely** through the Datadog UI. This method allows changes to take effect immediately without redeploying your service. For **Resource-based Sampling**, you also have the option to apply configurations **locally** by updating your service's configuration files and redeploying.

Using **Remote Configuration** for service ingestion rates has specific requirements.

Expand All @@ -158,9 +155,9 @@ Find below the minimum tracing library version required for the feature:

{{% /collapse-content %}}

#### Adaptive sampling (Recommended)
#### Adaptive sampling

Specify a target monthly ingestion volume for one or multiple services while keeping visibility over all services and endpoints.
Use Adaptive sampling to let Datadog manage services' sampling rates on your behalf. Specify a target monthly ingestion volume for one or multiple services while keeping visibility over all services and endpoints.

To configure adaptive sampling:

Expand All @@ -174,7 +171,8 @@ To configure adaptive sampling:

For more information, see [Adaptive Sampling][17].

#### Custom sampling

#### Resource-based sampling

To configure custom sampling rates for the service by resource name:
1. Navigate to the [Ingestion Control][2] page.
Expand Down Expand Up @@ -227,7 +225,7 @@ With remote configuration, you don't have to restart the Agent to update these p

**Note**: Remotely configured parameters take precedence over local configurations such as environment variables and `datadog.yaml` configuration.

### Sampling precedence rules
## Sampling rules' precedence

If sampling rules are set in multiple locations, the following precedence rules apply in order, where rules that appear first on the list can override lower precedence rules:

Expand Down
Loading