feat: Instrument durable API-to-worker telemetry (U2)

This commit is contained in:
Самохвалов Андрей Ремович
2026-10-02 15:09:55 +03:00
parent 26f091c9b4
commit 8eab283f6f
14 changed files with 355 additions and 36 deletions
+7
View File
@@ -0,0 +1,7 @@
-- Preserve the upload span context across the durable outbox and every retry.
-- Version 007 is reserved for the lab5 replay/audit migration.
ALTER TABLE attachment_jobs
ADD COLUMN traceparent text
CHECK (traceparent IS NULL OR traceparent ~ '^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$'),
ADD COLUMN tracestate text
CHECK (tracestate IS NULL OR length(tracestate) <= 512);