Files
git.stella-ops.org/docs/features/unchecked/scanner/trace-retention-and-pruning-manager.md

23 lines
1.3 KiB
Markdown

# Trace Retention and Pruning Manager
## Module
Scanner
## Status
IMPLEMENTED
## Description
Manages runtime trace lifecycle with configurable retention periods (default 30 days), automatic pruning of old traces while preserving those referenced by active slices, trace aggregation, and storage quota enforcement.
## Implementation Details
- **Trace Retention Manager**:
- `src/Scanner/__Libraries/StellaOps.Scanner.Runtime/Retention/TraceRetentionManager.cs` - `TraceRetentionManager` managing runtime trace lifecycle with configurable retention periods (default 30 days), automatic pruning of expired traces while preserving those referenced by active reachability slices, trace aggregation, and storage quota enforcement
## E2E Test Plan
- [ ] Configure a 30-day retention period and verify traces older than 30 days are automatically pruned
- [ ] Verify traces referenced by active reachability slices are preserved even if they exceed the retention period
- [ ] Verify trace aggregation combines repeated observations into summary records before pruning individual traces
- [ ] Configure a storage quota and verify the retention manager prunes oldest traces when quota is exceeded
- [ ] Verify pruning is idempotent (running multiple times produces the same result)
- [ ] Verify retention configuration can be updated without data loss