Help about Spring Boot Option ? it seems does not work
nicktming opened this issue · 2 comments
nicktming commented
when i tried following the instructions in the introducation of webmvc4-boot, Backend and Frontend had different trace_id, by the way the webmvc4 works.
i did as follows:
- git clone https://github.com/openzipkin/brave-webmvc-example.git
- cd webmvc4-boot
- mvn compile exec:java -Dexec.mainClass=brave.webmvc.Backend
- mvn compile exec:java -Dexec.mainClass=brave.webmvc.Frontend
- java -jar zipkin.jar
- curl -s localhost:8081 -H'user-name: JC'
The Result :
brave.webmvc.Frontend : [de8e059e2458c13a/de8e059e2458c13a]
brave.webmvc.Backend : [5762ebf5fd9fcb52/5762ebf5fd9fcb52]
is there anything wrong? Thanks.
codefromthecrypt commented
sorry this is a configuration bug. this stuff is tricky which is why there's a fair amount of code in spring-cloud-sleuth #28
nicktming commented
Thanks.