peppa/openspec/changes/archive/2026-11-19-pep-213-slow-requests/proposal.md
2026-11-19 18:45:17 +05:00

11 lines
692 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

## Why
Страницы тормозят, а цифры видны только в web.log. Нужен замер на сервере и сообщение в Bugsink.
## What Changes
- Замер длительности страницы и server action, суммы и числа SQL внутри запроса.
- Медленный запрос (`PEPPA_SLOW_REQUEST_MS`, 1500) или SQL > `PEPPA_SLOW_SQL_MS` (200) — warning «Медленно: <маршрут>» в Bugsink (PEP-api).
- Сводка за сутки на `/observability` (суперадмин).
## Impact
packages/db (probe), packages/core (request-timing, error-report), apps/web (instrumentation, observability).