Skip to content

Conversation

@jp-agenta
Copy link
Member

@jp-agenta jp-agenta commented Jan 12, 2026

PR: Data Retention

Summary

  • Add plan-based trace retention windows.
  • Add tracing retention DAO/service and admin endpoint to flush old spans.
  • Add cron entry to trigger retention runs.

Scope

  • EE tracing retention (plans and billing endpoint).
  • Core/OSS migrations for retention-related indexes.
  • UI exposure of retention settings.

QA: Data Retention

Functional checks

  • Verify logs show per-plan retention cutoff and deletion counts.
  • Confirm old traces are removed and newer traces remain.

Edge cases

  • No projects for a plan (should log skip/zero counts).
  • Unlimited retention (plan should be skipped).
  • Large batch sizes (ensure job completes under cron timeout).

Monitoring

  • Check logs for flush start/end markers.
  • Track DB load during retention run.

@dosubot dosubot bot added the size:XXL This PR changes 1000+ lines, ignoring generated files. label Jan 12, 2026
@vercel
Copy link

vercel bot commented Jan 12, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
agenta-documentation Ready Ready Preview, Comment Jan 12, 2026 0:55am

@jp-agenta jp-agenta changed the base branch from main to feat/add-multi-orgs-domains-and-sso January 12, 2026 12:27
@dosubot dosubot bot added size:XL This PR changes 500-999 lines, ignoring generated files. Backend feature and removed size:XXL This PR changes 1000+ lines, ignoring generated files. labels Jan 12, 2026
@dosubot dosubot bot added size:XXL This PR changes 1000+ lines, ignoring generated files. and removed size:XL This PR changes 500-999 lines, ignoring generated files. labels Jan 12, 2026
@jp-agenta jp-agenta changed the title [feat] Add data retention periods for spans [feat] Add data retention periods (for spans) Jan 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Backend feature size:XXL This PR changes 1000+ lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants