feat(observability): add bounded OTLP signals, causal jobs and SLO rules

This commit is contained in:
2026-11-20 15:41:53 +03:00
parent 470d9d6f1e
commit 8f3ff33b2d
76 changed files with 9995 additions and 33 deletions
+10
View File
@@ -0,0 +1,10 @@
ALTER TABLE jobs ADD COLUMN traceparent text NOT NULL DEFAULT '';
ALTER TABLE jobs ADD COLUMN tracestate text NOT NULL DEFAULT '';
CREATE TABLE job_slo_observations (
job_id uuid PRIMARY KEY REFERENCES jobs(id),
outcome text NOT NULL CHECK(outcome IN ('good','bad')),
decided_at timestamptz NOT NULL DEFAULT clock_timestamp(),
histogram_epoch uuid
);
CREATE INDEX job_slo_epoch_idx ON job_slo_observations(histogram_epoch);
CREATE INDEX effect_publications_time_idx ON effect_publications(committed_at,job_id);