feat: propagate trace context through outbox and add pipeline saturation metrics

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-11 19:54:37 +03:00
co-authored by Claude Opus 5.5
parent ff0073e8e3
commit 72cfa9aaf6
64 changed files with 4699 additions and 552 deletions
+6 -1
View File
@@ -80,7 +80,12 @@ paths:
`track1-queue-overload`, решение 3), `mark_published` пакета,
`recover_expired_leases`, `has_published_before`, `reset_published_before`;
`replay_job`, `list_failed` — состояние в выборках relay константой
`literal_execute`), `attachment_job_replay.py` (`insert_replay`,
`literal_execute`; с design change `job-trace-propagation`, решения 4 и 9:
`insert_job` пишет `traceparent` и `tracestate`, `_JOB_COLUMNS` их читает;
`queue_snapshot(now)` — одно выражение из подзапросов по условиям частичных
индексов outbox (по выражению срока — `scheduled` и `outbox`), опубликованных и
аренды, `LEAST` трёх `min(created_at)`, состояния константой, иначе Seq Scan),
`attachment_job_replay.py` (`insert_replay`,
`get_job_replays`) и
`attachment_variant.py` (`insert_variant` — `ON CONFLICT DO NOTHING`,
`get_variants`, `get_variant`);