mirror of
https://github.com/monoscope-tech/monoscope.git
synced 2026-11-16 10:18:01 +00:00
The residual half of the trace/timestamp mismatch. Readers pin a +/-5min window
to the timestamp taken alongside recent_trace_id, so the two have to move
together — and they cannot, because recent_trace_id is deliberately throttled to
at most one write per five minutes per pattern (rewriting it per occurrence
breaks HOT and bloats heap/TOAST on the hottest path in the product) while
updated_at is written on every occurrence.
Migration 0145 adds recent_trace_at, set in the *same* CASE branch as the id, so
they cannot drift again. Nullable with no backfill: the value is only knowable at
write time, so a row acquires one the next time its pattern recurs, and the page
keeps the previous approximation as a fallback until then.
Read with a dedicated scalar rather than widening ErrorPattern: that record is
decoded positionally from explicit column lists in several queries, and widening
it would mean touching all of them on the error-ingest path to serve one page.
The earlier fix (
|
History
|
|
|---|---|---|
| .. | ||
| i18n | ||
| migrations | ||
| migrations-pending | ||
| public | ||