You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@knox.apache.org by GitBox <gi...@apache.org> on 2022/01/26 13:00:02 UTC
[GitHub] [knox] smolnar82 commented on a change in pull request #534: KNOX-2704 - Honor request id (correlation id) set by upstream loadbalancer
smolnar82 commented on a change in pull request #534:
URL: https://github.com/apache/knox/pull/534#discussion_r792610683
##########
File path: gateway-server/src/main/java/org/apache/knox/gateway/GatewayFilter.java
##########
@@ -150,7 +153,13 @@ public void doFilter( ServletRequest servletRequest, ServletResponse servletResp
}
}
- assignCorrelationRequestId();
+ /* If request contains X-Request-Id header use it else use random uuid as correlation id */
+ final String req_id = ((HttpServletRequest) servletRequest).getHeader(REQUEST_ID_HEADER_NAME);
Review comment:
+1
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@knox.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org