---
title: Error Tracking Dynamic Sampling
description: >-
  Learn how to use Dynamic Sampling in Error Tracking to ensure your volume
  isn't consumed all at once.
breadcrumbs: >-
  Docs > Log Management > Error Tracking for Logs > Error Tracking Dynamic
  Sampling
---

# Error Tracking Dynamic Sampling

## Overview{% #overview %}

Because Error Tracking billing is based on the number of errors, large increases in the errors for a single issue can quickly consume your Error Tracking budget. Dynamic Sampling protects you by establishing a threshold for the error rate per issue based on your daily rate limit and historical error volumes, sampling errors when that threshold is reached. Dynamic Sampling automatically deactivates when the error rate of your issue decreases below the given threshold.

## Setup{% #setup %}

Dynamic Sampling is automatically enabled with Error Tracking with a default intake threshold based on your daily rate limit and historical volume.

For best results, set up a daily rate limit on the [Error Tracking Rate Limits page](https://app.datadoghq.com/error-tracking/settings/rate-limits): Click **Edit Rate Limit** and enter a new value.

{% image
   source="https://docs.dd-static.net/images/error_tracking/dynamic-sampling-rate-limit.7ba66c5a1dd8e8a95bb2a019511abb70.png?auto=format"
   alt="Error Tracking Rate Limit" /%}

## Disable Dynamic Sampling{% #disable-dynamic-sampling %}

Dynamic Sampling can be disabled on the [Error Tracking Settings page](https://app.datadoghq.com/error-tracking/settings).

{% image
   source="https://docs.dd-static.net/images/error_tracking/dynamic-sampling-settings.08009fe34aea911332d1861f1df3c2c1.png?auto=format"
   alt="Error Tracking Dynamic Sampling Settings" /%}

## Monitor Dynamic Sampling{% #monitor-dynamic-sampling %}

A `Dynamic Sampling activated` event is generated when Dynamic Sampling is applied to an issue. See the [Event Management documentation](https://docs.datadoghq.com/events/) for details on viewing and using events.

{% image
   source="https://docs.dd-static.net/images/error_tracking/dynamic-sampling-event.fc1ce96bd6656417be8958a0a86e6642.png?auto=format"
   alt="Error Tracking Rate Limit" /%}

### Investigation and mitigation steps{% #investigation-and-mitigation-steps %}

When Dynamic Sampling is applied, the following steps are recommended:

- Check which issue is consuming your quota. The issue to which Dynamic Sampling is applied is linked in the event generated in Event Management.
- If you'd like to collect additional samples for this issue, raise your daily quota on the [Error Tracking Rate Limits page](https://app.datadoghq.com/error-tracking/settings/rate-limits).
- If you'd like to avoid collecting samples for this issue in the future, consider creating an [exclusion filter](https://docs.datadoghq.com/logs/error_tracking/manage_data_collection#add-a-rule) to prevent additional events from being ingested into Error Tracking.

## Further Reading{% #further-reading %}

- [Learn about managing your data in Error Tracking](https://docs.datadoghq.com/logs/error_tracking/manage_data_collection)
- [Learn about Error Tracking for Logs](https://docs.datadoghq.com/logs/error_tracking)
