I have one legacy project which is using jetty,apache http client, log4j2. I want to implement distributed tracing and want to populate trace id and span id into the logs,since this is not a spring boot project I cannot use spring slueth which do all the heavy lifting and do auto intrumentation, I came across brave and brave-context-log4j, but I am not able to configure the brave with my project.
I am referring this https://github.com/openzipkin/brave/tree/master/context/log4j2 but my logs are not populating with trace id and span id, is there any way to automatically instrument with brave or any other lib where i don't have to touch much code.