opentracing-contrib / java-jaxrs

OpenTracing Java JAX-RS instrumentation
Apache License 2.0
37 stars 33 forks source link

log4j2 support #140

Closed seho-kim-do-something closed 4 years ago

seho-kim-do-something commented 4 years ago

Hello, Is there any plan to support lo4j2? It seems trace with logs not working when I check from UI. I tried with logback, then I was able to see logs along with my application logs. Thanks

pavolloffay commented 4 years ago

This project purely instruments jax-rs. The integration with the logging framework is out of the scope of this project.

Putting trace context into logs has to be done at tracer initialization time as it requires changing the scope manager implementation https://github.com/quarkusio/quarkus/blob/master/extensions/jaeger/runtime/src/main/java/io/quarkus/jaeger/runtime/MDCScopeManager.java#L11