Data Governance

This product is not supported for your selected Datadog site. ().

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 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

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.

Sensitive Data Scanner integration

Agent Observability integrates with Sensitive Data Scanner, 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

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.

DataRetention period
Traces and spans15 days; 30, 60, or 90 days with a retention add-on
ExperimentsFree tier and on-demand plans: 15 days. Committed plans: 90 days. With a retention add-on: 6, 9, or 12 months
Annotated interactions and labels90 days from the time of annotation, or your span retention period if that is longer
Dataset recordsCurrent version: 3 years. Previous versions: 90 days, reset when used
Prompts in the prompt registry3 years, extended each time the prompt is pulled
ml_obs.* metrics15 months

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

On committed plans, experiments are retained longer than production traces.

PlanExperiment retention
Free tier15 days
On-demand15 days
Committed (monthly or annual)90 days
30-day retention add-on6 months
60-day retention add-on9 months
90-day retention add-on12 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

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.

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.

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

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 — 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

Records in the current version of a dataset 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.

Prompts

Prompts in the prompt registry 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

The ml_obs.* metrics generated from your spans are standard Datadog metrics and follow standard Datadog metric retention: 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.

Further reading