---
title: How to Configure Trace Sampling
description: Set the percentage of traces that DigitalOcean Insights retains from DigitalOcean-managed resources.
product: Insights
url: https://docs.digitalocean.com/products/insights/how-to/configure-trace-sampling/
last_updated: "2026-11-23"
---

> **For AI agents:** The documentation index is at [https://docs.digitalocean.com/llms.txt](https://docs.digitalocean.com/llms.txt). Markdown versions of pages use the same URL with `index.html.md` in place of the HTML page (for example, append `index.html.md` to the directory path instead of opening the HTML document).

# How to Configure Trace Sampling

DigitalOcean Insights provides metrics, logs, traces, dashboards, and alerts to help you monitor, analyze, and troubleshoot supported DigitalOcean resources.

DigitalOcean Insights trace sampling determines the percentage of traces retained from DigitalOcean-managed resources.

**Note**:

  You can configure trace sampling only in the DigitalOcean Control Panel, not through the DigitalOcean API or CLI.

For guidance on choosing a sampling rate, see [Configure Trace Sampling Based on Workload Activity](https://docs.digitalocean.com/products/insights/concepts/telemetry-best-practices/index.html.md#configure-trace-sampling-based-on-workload-activity).

To configure trace sampling, go to the [**Settings**](https://cloud.digitalocean.com/insights/settings?utm_source=docs-agent&utm_medium=md) tab in the Control Panel.

In the **Data Volume Controls** section, under the **Trace Sampling** sub-section, displays the current sampling rate.

## Change Sampling Rate

To change the sampling rate, on the right, click **Edit**.

In the **Sampling rate** field, click **-** or **+** to decrease or increase the percentage of traces retained. You can set a value from 0% to 100%. The default is 10%.

We recommend starting with the default 10% sampling rate. Use higher rates for more detailed troubleshooting or lower rates for high-volume workloads to reduce retained data.

Then, click **Save** to apply your changes. The updated sampling rate takes effect immediately.