My application to handle upstream request calls 2 downstream systems (by REST). As calls are parallelizable, I would like to use virtual threads, by StructuredTaskScope.fork()
or Executors.newVirtualThreadPerTaskExecutor()
Unfortunately, traceId
is not automatically propagated downstream and MDC is not present in virtual threads.
After research it seems that it is known issue without simple solution.
I would like to ask if I can expect in future support from Spring Boot in trace and MDC propagation to virtual threads or I have to manage it myself