miroir/crates
jedarden 9fee653d4b P7.5.c: wire request_id into all log lines for trace correlation
Fix the InFlightGuard TRACE logs to explicitly include request_id
as a top-level field in the JSON output. Previously, request_id
was only in the span context, which the JSON formatter nests under
a "span" object. This made it impossible to grep for request_id
across log lines.

Changes:
- InFlightGuard now takes request_id and includes it in TRACE logs
- Updated call site in telemetry_middleware to pass request_id

Acceptance:
- Grepping request_id=abc123 now returns every log line from that request
- Non-request logs (startup, background tasks) don't have request_id field

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-04-26 10:40:37 -04:00
..
miroir-core test(core): add Redis session TTL expiration test 2026-04-25 16:11:15 -04:00
miroir-ctl P10.3: SEARCH_UI_JWT_SECRET dual-secret overlap rotation 2026-04-19 16:17:33 -04:00
miroir-proxy P7.5.c: wire request_id into all log lines for trace correlation 2026-04-26 10:40:37 -04:00