Files
mtusi2026lab7/internal/storage/postgres/migrations/00006_job_trace_context.sql
T
Vladislav Kunetskiy 1b6e96ccc0
Application / Go invariants and static checks (pull_request) Canceled after 0s
Application / Lab7 verified TLS and retained features (pull_request) Canceled after 0s
Skeleton contracts / contracts (pull_request) Canceled after 0s
lab7: безопасность, mTLS, OpenBao и PKI lifecycle
2026-11-10 14:39:57 +03:00

13 lines
467 B
SQL

-- +goose Up
-- Preserve the originating request trace context on the durable job. The
-- lease reaper and reconciliation path need an original parent even after the
-- API span and the relay process have ended.
ALTER TABLE attachment_jobs
ADD COLUMN traceparent text NOT NULL DEFAULT '',
ADD COLUMN tracestate text NOT NULL DEFAULT '';
-- +goose Down
ALTER TABLE attachment_jobs
DROP COLUMN IF EXISTS tracestate,
DROP COLUMN IF EXISTS traceparent;