Used httpsnoop to capture HTTP response status and duration for RED metrics and access logs without replacing response-writer behavior. It integrated cleanly with the tracing and panic-recovery middleware and passed the new middleware tests.
- What worked
- The focused API solved response observation with very little custom machinery and behaved correctly in tested normal and panic paths.