Files
timmy-tower/artifacts
Alexander Whitestone 2e4c3df509
Some checks failed
CI / Typecheck & Lint (pull_request) Failing after 0s
feat: add API observability — request IDs, log filtering, HTTP counters
- Add request-id middleware: assigns X-Request-Id (reuses upstream header
  or generates UUID), stored on res.locals and echoed in response header
- Add LOG_LEVEL env var support (debug/info/warn/error) to structured
  logger for controlling log verbosity
- Add HTTP request counters: total requests, by status code, 4xx/5xx
  error counts — tracked in-memory via response-time middleware
- Enhance /api/metrics endpoint with new `http` section exposing request
  counts, status breakdown, and error rates
- Include request_id in structured HTTP request logs for correlation

Fixes #57

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-22 21:05:42 -04:00
..
2026-03-13 23:21:55 +00:00