Skip to content

Document AI Observability data retention policy#17129

Merged
slshults merged 3 commits into
masterfrom
add-ai-observability-data-retention
May 29, 2026
Merged

Document AI Observability data retention policy#17129
slshults merged 3 commits into
masterfrom
add-ai-observability-data-retention

Conversation

@slshults
Copy link
Copy Markdown
Member

@slshults slshults commented May 29, 2026

Summary

Documents the 30-day data retention policy for AI Observability $ai_ events as a standalone Data retention page under Resources (moved out of the Basics page per review feedback).

At ingestion, each $ai_ event is split into two copies:

  • A full copy with all properties → ai_events table (deleted after 30 days).
  • A trimmed copy without the large properties → events table (kept like any other Product Analytics event).

To read the large properties ($ai_input, $ai_output, $ai_output_choices, $ai_input_state, $ai_output_state, $ai_tools), query the ai_events table — even for traces under 30 days old.

Changes

  • Remove the Data retention section from basics.mdx
  • Add contents/docs/ai-observability/data-retention.mdx
  • Add the page under AI Observability > Resources in the nav

🤖 Generated with Claude Code

Added a section on data retention policies for AI Observability events, detailing the 30-day retention policy and what properties are removed after this period.
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 29, 2026

Deploy preview

Status Details Updated (UTC)
🟢 Ready View preview May 29, 2026 08:12PM

@slshults slshults requested a review from edwinyjlim May 29, 2026 16:18
Copy link
Copy Markdown
Member

@edwinyjlim edwinyjlim left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd consider adding this as a new Data retention page under Resources. It feels a little tacked on here under the basics page.

Image

Move the AI Observability data retention content out of basics.mdx into a
dedicated Resources page, and correct the mechanism: at ingestion each $ai_
event is split into a full copy in the ai_events table (deleted after 30 days)
and a trimmed copy in the events table (never includes the large properties).

- Remove the Data retention section from basics.mdx
- Add contents/docs/ai-observability/data-retention.mdx
- Add the page to the AI Observability > Resources nav

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@slshults slshults changed the title Add data retention policy section to AI Observability basics Document AI Observability data retention policy May 29, 2026
## What this means for you

- To read the large properties, query the `ai_events` table – even for traces less than 30 days old. The `events` table never contains them.
- After 30 days, the large properties are gone. A trace older than 30 days still appears, but its generations show no input or output content.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

They're gone because we drop the full row in ai_events. That's how we efficiently get rid of the large properties.

Copy link
Copy Markdown
Member Author

@slshults slshults left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

applying change based on Radu's comment

Comment thread contents/docs/ai-observability/data-retention.mdx Outdated
Applying change based on Radu's comment
@slshults slshults merged commit 9d35ef1 into master May 29, 2026
18 checks passed
@slshults slshults deleted the add-ai-observability-data-retention branch May 29, 2026 20:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants