Hi there,
just a quick question, as I could not find the solution after some search.
I want to extract the opentracing TraceId, and use it (print it) in my logs so I can use it as correlation ID, to correlate logs from the same request (trace) in ELK.
I would like to do it in a WebFilter, that would extract the TraceID and puts it e.g. into log4j diagnostic context.
What is the easiest/preferred/allowed way of doing this?
[Note: as far as I understand, the TraceId is a "global" correlator created at the "entry" of a request into the system and the same across all spans in that request]
Many thanks in advance
André
#opentracing #microprofile