Собрать наблюдаемый стенд, чтобы причину деградации API и worker было видно по метрикам, логам и трассам.

This commit is contained in:
2026-11-07 01:36:19 +03:00
parent 470d9d6f1e
commit 7d4e1237a3
56 changed files with 4419 additions and 53 deletions
+11
View File
@@ -0,0 +1,11 @@
Local fault-injection files. They are not present by default, so the API behaves normally.
Write one of these names in this directory while the stack is running:
- `http_error_ratio` — float 0..1, fraction of `/api/` requests that return 500
- `db_slow_ms` — delay added inside the `db.transaction` span
- `db_fail` — `1` makes database calls return 503
- `handler_slow_ms` — delay inside the HTTP server span and outside the database span
- `process_fail_remaining` — positive integer, worker fails that many processing attempts once each
Do not put secrets here. The worker must be able to update `process_fail_remaining`.