Found during v0.5.20 release review. Deferred because: requires embedding timestamps in filenames or a lightweight index — significant design work.
listTracesPaginated calls Trace.listTraces(dir) which reads and JSON-parses every trace file on disk, then slices the array. For users with thousands of traces, this is O(n) memory and CPU on every paginated request. The pagination API gives users the impression of efficiency while doing full-table-scan work underneath.
Flagged by: CTO, End User, Tech Lead, Chaos Gremlin (4/5 reviewers).
Found during v0.5.20 release review. Deferred because: requires embedding timestamps in filenames or a lightweight index — significant design work.
listTracesPaginatedcallsTrace.listTraces(dir)which reads and JSON-parses every trace file on disk, then slices the array. For users with thousands of traces, this is O(n) memory and CPU on every paginated request. The pagination API gives users the impression of efficiency while doing full-table-scan work underneath.Flagged by: CTO, End User, Tech Lead, Chaos Gremlin (4/5 reviewers).