javed0863/webflux-log-tracing — reverse-engineered prompt

Reverse engineered prompt

GitHub

Build me a small Java 17 Spring Boot 3 WebFlux project that demonstrates log tracing in a reactive app using Micrometer and Brave.

I want to be able to run it with Maven, call a couple of simple HTTP endpoints, and clearly see trace information in the logs for each request. The important part is that logs from the same request stay connected, even when the code uses reactive chains instead of normal blocking code. Please include a simple controller or handler, a service layer, and enough logging to prove the trace and span values are flowing through the app.

Keep it clean and easy to understand, like a demo someone could copy into a real service. Add basic tests if they make sense, and update the README with how to run it and what log output to expect. Look up current Spring Boot 3 tracing docs online if needed.

Want more depth? Deep Reverse