I would like to include the spring.sleuth.propagation-keys
into the MDC.
Mentioned here we can create our own implementation of CurrentTraceContext
similar to Slf4jCurrentTraceContext
.
However cannot get the value via since the ExtraFieldPropagation.Extra
class is package private:
((ExtraFieldPropagation.Extra) currentSpan.extra().get(0)).values[0];
if I set:
spring:
sleuth:
propagation-keys: trId
What am I missing?
Thank you.