Summary
The server has no request-level access log, making it impossible to compute request rates or p95 latencies from logs alone. An info-level log should be emitted for every API request after the response is sent.
Scope
- Add middleware that emits an info-level log after each response with fields:
method, route (parametrised path, not the raw URL), status_code, duration_ms
- Route should be the matched route pattern (e.g.
/creators/:id) not the raw request URL (e.g. /creators/GABC...) to avoid high-cardinality log keys
- Middleware should run after the response is sent so
duration_ms includes response serialisation
Acceptance Criteria
ETA: 12 hours
Coordinate on Telegram
Summary
The server has no request-level access log, making it impossible to compute request rates or p95 latencies from logs alone. An info-level log should be emitted for every API request after the response is sent.
Scope
method,route(parametrised path, not the raw URL),status_code,duration_ms/creators/:id) not the raw request URL (e.g./creators/GABC...) to avoid high-cardinality log keysduration_msincludes response serialisationAcceptance Criteria
duration_msreflects full request-to-response timeETA: 12 hours
Coordinate on Telegram