Problem: "Manual" context propagation does not work in native mode
To read more about context propagation check this article
Steps to reproduce ht issue:
- Run app in dev mode:
./mvnw quarkus:dev
- Get MDC values using
curl http://localhost:8080/uni && curl http://localhost:8080/thread-context
Output:
MDC value: from-uni
MDC value: from-thread-context
- Stop quarkus
- Compile app into native executable:
./mvnw package -Pnative
- Start native app
./target/quarkus-context-propagation-1.0.0-SNAPSHOT-runner
- Get MDC values using the same command as in item 2:
curl http://localhost:8080/uni && curl http://localhost:8080/thread-context
Output:
MDC value: from-uni
MDC value: null