ЛР 6: observability OpenTelemetry/Grafana

This commit is contained in:
2026-11-17 17:13:25 +03:00
parent 470d9d6f1e
commit 7a57ae41f4
45 changed files with 3300 additions and 33 deletions
+9
View File
@@ -0,0 +1,9 @@
CREATE TABLE idempotency_records (
scope_key TEXT PRIMARY KEY,
request_hash TEXT NOT NULL,
message_id UUID NOT NULL REFERENCES messages (id),
created_at TIMESTAMPTZ NOT NULL,
expires_at TIMESTAMPTZ NOT NULL
);
CREATE INDEX idempotency_records_expires_idx ON idempotency_records (expires_at);