I am currently stuck with one use case in spring-cloud-sleuth. I am using Finchley.Release spring cloud in my pom and Spring boot 2.0.3.RELEASEץ
I implemented my own CustomTraceContext which extends CurrentTraceContext and have added a custom CorrelationId (X-P-TraceId) to MDC.
I am using log4j2.xml and I am able to see CorrelationId (X-P-TraceId) in log files.
Now I need to propagate CorrelationId (X-P-TraceId) to chain of microservices and also I am unable to see CorrelationId (X-P-TraceId) in async threads (I printed MDC.getCopyOfContextMap() in async threads I see only X-B3-TraceId, X-B3-SpanId)?
Is that possible with Finchley.Release?
Is there any any sample configuration?
I referred this but unable to configure with this.
Any help is appreciated.