NestJS · Middleware · Senior · Architecture
Lead: correlation ID middleware standards across services.
Short Interview Answer
Accept inbound trace headers, create if missing, store in ALS, propagate outbound, and include in logs.
Detailed Explanation
Align with OpenTelemetry. Document header names. Make it a platform module, not per-service one-offs.