---
title: Data Governance
description: >-
  Control access to sensitive Agent Observability data with data access controls
  and RBAC, redact data with span processors, and learn how long Agent
  Observability retains each type of data.
breadcrumbs: Docs > Agent Observability > Data Governance
---

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

# Data Governance

{% callout %}
# Important note for users on the following Datadog sites: app.ddog-gov.com, us2.ddog-gov.com

{% alert level="danger" %}
This product is not supported for your selected [Datadog site](https://docs.datadoghq.com/getting_started/site.md). ({% placeholder "user-datadog-site-name" /%}).
{% /alert %}

{% /callout %}



- [HIPAA-Eligible Services: Datadog Legal's list of HIPAA-eligible services](https://datadoghq.com/legal/hipaa-eligible-services)
 
## Data Access Control{% #data-access-control %}

Agent Observability allows you to restrict access to potentially sensitive data associated with your AI applications to only certain teams and roles in your organization. This is particularly important when your AI applications process sensitive information such as personal data, proprietary business information, or confidential user interactions.

Access controls in Agent Observability are built on Datadog's [Data Access Control](https://docs.datadoghq.com/account_management/rbac/data_access.md) feature, which enables you to regulate access to data deemed sensitive. You can use the `ml_app` tag to identify and restrict access to specific AI applications within your organization.

## Redacting data with span processors{% #redacting-data-with-span-processors %}

You can redact or modify sensitive data at the application level before it is sent to Datadog. Use span processors in the Agent Observability SDK to conditionally modify input and output data on spans, or prevent spans from being emitted entirely.

This is useful for:

- Removing sensitive information from prompts or responses
- Filtering out internal workflows or test data
- Conditionally redacting data based on tags or other criteria

For detailed implementation examples and usage patterns, see the [Span Processing section in the SDK Reference](https://docs.datadoghq.com/llm_observability/instrument/sdk.md#span-processing).

## Sensitive Data Scanner integration{% #sensitive-data-scanner-integration %}

Agent Observability integrates with [Sensitive Data Scanner](https://docs.datadoghq.com/security/sensitive_data_scanner.md), which helps prevent data leakage by identifying and redacting any sensitive information (such as personal data, financial details, or proprietary information) that may be present in any step of your AI application.

By proactively scanning for sensitive data, Agent Observability helps ensure that conversations remain secure and compliant with data protection regulations. This additional layer of security reinforces Datadog's commitment to maintaining the confidentiality and integrity of user interactions with your AI applications.

## Data retention{% #data-retention %}

Retention periods in Agent Observability depend on the type of data and on your plan. Traces from your instrumented applications follow the span retention period in your plan, while experiments, datasets, and prompts have their own periods.

| Data                              | Retention period                                                                                              |
| --------------------------------- | ------------------------------------------------------------------------------------------------------------- |
| Traces and spans                  | 15 days; 30, 60, or 90 days with a retention add-on                                                           |
| Experiments                       | Free tier and on-demand plans: 15 days. Committed plans: 90 days. With a retention add-on: 6, 9, or 12 months |
| Annotated interactions and labels | 90 days from the time of annotation, or your span retention period if that is longer                          |
| Dataset records                   | Current version: 3 years. Previous versions: 90 days, reset when used                                         |
| Prompts in the prompt registry    | 3 years, extended each time the prompt is pulled                                                              |
| `ml_obs.*` metrics                | 15 months                                                                                                     |

### Traces and spans{% #traces-and-spans %}

Traces and spans from your instrumented applications are retained for **15 days** on all plans by default. This applies to everything stored on the span, including per-span operational data such as cost, token counts, latency, and errors, as well as evaluation scores attached to spans.

A retention add-on extends this to **30, 60, or 90 days**. Add-ons are not available on the free tier. See Changing your retention period.

Retention applies to the raw spans you query in the Trace Explorer. Metrics derived from those spans are retained separately, for longer. See Metrics.

### Experiments{% #experiments %}

On committed plans, [experiments](https://docs.datadoghq.com/llm_observability/improve/experiments.md) are retained longer than production traces.

| Plan                          | Experiment retention |
| ----------------------------- | -------------------- |
| Free tier                     | 15 days              |
| On-demand                     | 15 days              |
| Committed (monthly or annual) | 90 days              |
| 30-day retention add-on       | 6 months             |
| 60-day retention add-on       | 9 months             |
| 90-day retention add-on       | 12 months            |

If your organization has a custom contract, your retention periods may not match this table. Contact your Datadog account representative to confirm your periods.

### Changing your retention period{% #changing-your-retention-period %}

Retention length affects what you are billed, because a longer period means Datadog stores more of your data. For rates, see the [Agent Observability pricing page](https://www.datadoghq.com/pricing/?product=llm-observability#products).

Retention add-ons are arranged through your account team rather than enabled from the Datadog UI. To request a longer retention period, contact your Datadog account representative or [Datadog support](https://docs.datadoghq.com/help/).

When you add or extend a retention add-on, the longer period applies **retroactively to every span that has not already expired**. Spans that expired under your previous period are not recoverable.

For example, if you are on the default 15-day retention and add a 60-day add-on today, the spans from the last 15 days pick up the 60-day period, but anything older is already gone.

When you move to a shorter retention period, spans older than the new period are no longer available.

### Annotated interactions{% #annotated-interactions %}

Annotating an interaction extends its retention. When you apply an annotation label or note to a trace, span, or session — whether directly or through an [annotation queue](https://docs.datadoghq.com/llm_observability/investigate/annotation_queues.md) — Datadog retains the annotated interaction for **90 days** from the time of annotation, even if your span retention period is shorter. Annotating a span retains its whole parent trace, and annotating a trace that belongs to a session retains the whole session.

Annotation labels are retained for the same period as the interactions they annotate.

Extending retention by annotating an interaction does not incur an additional charge.

### Dataset records{% #dataset-records %}

Records in the current version of a [dataset](https://docs.datadoghq.com/llm_observability/improve/datasets.md) are retained for **3 years**, regardless of your span retention period.

Records in previous versions of a dataset are retained for **90 days**. This period resets each time a previous version is used — for example, when an experiment reads that version. After 90 consecutive days without use, a previous version becomes eligible for permanent deletion. For details, see [Dataset versioning](https://docs.datadoghq.com/llm_observability/improve/datasets.md#dataset-versioning).

### Prompts{% #prompts %}

Prompts in the [prompt registry](https://docs.datadoghq.com/llm_observability/configure/prompt_management.md) are retained for **3 years**. This period is extended each time the prompt is pulled by your application, so a prompt in active use stays available. A prompt that is not pulled for 3 years becomes eligible for permanent deletion.

### Metrics{% #metrics %}

The `ml_obs.*` metrics generated from your spans are standard [Datadog metrics](https://docs.datadoghq.com/metrics.md) and follow [standard Datadog metric retention](https://docs.datadoghq.com/data_security/data_retention_periods.md): 15 months at full granularity. They are retained on this schedule regardless of your span retention period, so you can build long-term dashboards and monitors on span counts, token usage, cost, latency, and error rates even after the underlying spans expire.

For the full list of available metrics, see [Agent Observability metrics](https://docs.datadoghq.com/llm_observability/investigate/metrics.md).

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

Additional helpful documentation, links, and articles:

- [Learn more about data access controls](https://docs.datadoghq.com/account_management/rbac/data_access.md)
- [Work with datasets and dataset versions](https://docs.datadoghq.com/llm_observability/improve/datasets.md)
- [See default data retention periods across Datadog products](https://docs.datadoghq.com/data_security/data_retention_periods.md)
- [Agent Observability pricing](https://www.datadoghq.com/pricing/?product=llm-observability#products)
