knotx
knotx copied to clipboard
Log a request unique identifier based on HTTP header
We want to log a request unique identifier coming from a HTTP request. This id is added by Apache Front just before calling a Knot.x instance. So we want to read this data from the request and put this data into log file (retrieving this value from HTTP header). Usually this is achieved by MDC in Slf4j but in vert.x application it is not good approach. More details here:
https://groups.google.com/forum/#!topic/vertx/SKrG5EWw090
Please find a solution for this problem.
This is nice document to start: https://github.com/openshiftio-vertx-boosters/vertx-istio-distributed-tracing-booster.
Waiting for Vert.x 4