Инцидент «медленная БД»: LOCK TABLE messages IN ACCESS EXCLUSIVE MODE на 15 с под нагрузкой.
load.py (4 потока, 12 с): successful 4, failed 8, error_ratio 0.667
Метрика: http_server_request_duration_seconds_count{http_route="/api/v1/chats/{chat_id}/messages",http_response_status_code="503",error_type="503"} 8
Trace: CLIENT span "INSERT" 5.01 s, status ERROR "QueryCanceled: canceling statement due to statement timeout",
       event exception.type=psycopg.errors.QueryCanceled  -> время ушло в SQL (statement_timeout 5 с), а не в handler.
Длинный прогон (lock 180 с) и состояния ApiHighErrorRate — alerts_db_lock_180s.txt
