Express-style error middleware: on ResilienceException ensures the correlation header is set, emits a structured log record, then delegates to next(err) so the service renders its own envelope. Non-resilience errors pass straight through.
next(err)
Express-style error middleware: on ResilienceException ensures the correlation header is set, emits a structured log record, then delegates to
next(err)so the service renders its own envelope. Non-resilience errors pass straight through.