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 16, 2026 6:55pm

Request Review

@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
Copy link
Member

@mmabrouk mmabrouk left a comment

Choose a reason for hiding this comment

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

Thanks @jp-agenta lgtm

@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Jan 16, 2026
@junaway junaway changed the base branch from feat/add-multi-orgs-domains-and-sso to main January 16, 2026 18:41
@junaway junaway changed the base branch from main to release/v0.79.0 January 16, 2026 18:50
@junaway junaway merged commit 3f6b4c1 into release/v0.79.0 Jan 16, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Backend feature lgtm This PR has been approved by a maintainer size:XXL This PR changes 1000+ lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants