Skip to content

Commit

Permalink
Dubey | 000 | Return correlation id for request as part of response h…
Browse files Browse the repository at this point in the history
…eaders (#117)
  • Loading branch information
mddubey authored Sep 14, 2020
1 parent 0691334 commit 5e8c0be
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ public Mono<Void> filter(ServerWebExchange exchange, WebFilterChain chain) {
MDC.put(CORRELATION_ID, correlationId);
Context contextTmp = context.put(CORRELATION_ID, correlationId);
exchange.getAttributes().put(CORRELATION_ID, correlationId);
exchange.getResponse().getHeaders().add(CORRELATION_ID, correlationId);
return contextTmp;
});
}
Expand Down

0 comments on commit 5e8c0be

Please sign in to comment.