Реализовать лабораторную 6 на 5: SLO и обнаружение инцидентов

This commit is contained in:
Ванек
2026-11-19 18:53:24 +03:00
parent 470d9d6f1e
commit 8dad129edf
127 changed files with 53496 additions and 61 deletions
+9
View File
@@ -0,0 +1,9 @@
-- Context belongs to the durable job, not the lifetime of the HTTP process.
ALTER TABLE attachment_jobs
ADD COLUMN traceparent text,
ADD COLUMN tracestate text,
ADD COLUMN ready_at timestamptz;
-- Existing completed jobs predate instrumentation; preserve their actual update time.
UPDATE attachment_jobs j SET ready_at=a.updated_at
FROM attachments a WHERE a.id=j.attachment_id AND a.status='ready';
CREATE INDEX attachment_jobs_created_idx ON attachment_jobs(created_at);