monoscope/cli/test
Anthony Alaribe 593eb63e52 Fix the trace waterfall's parent linking, logfmt escaping, and the 90d scan
Found by actually running the commands end-to-end:

- The waterfall keyed the tree on the row UUID, but parent_id holds a *span*
  id (the server aliases context___span_id to latency_breakdown). Every span
  therefore looked like a root and nothing was ever indented. EventRow gains
  spanId and the tree keys on it. The test fixture had encoded the same
  misunderstanding, so it passed throughout — it now carries both ids with the
  real linkage.
- logfmt emitted the summary's ANSI colour codes and did not escape quotes or
  newlines, so a log body containing either split one event across lines. The
  summary is stripped of styling and values are escaped.
- events get --tree hardcoded a 90d scan, which the store can refuse outright
  ("merge-on-read dedup exceeded its per-query limit"). --since narrows it;
  the default is unchanged.
History 2026-08-06 16:46:48 +02:00
..
Main.hs Fix the trace waterfall's parent linking, logfmt escaping, and the 90d scan 2026-08-06 16:46:48 +02:00