While creating a microservice I decided to experiment with Spring-cloud sleuth.
My calling application is still on old version of Spring and it is not possible to include Spring-cloud-sleuth into the scope.
While referring to the documentation, it says that I need to pass just these 2 headers. X-B3-TraceId X-B3-SpanId
But is there a Specific format that I should be using to make it in compliance with the future. In my case, it failed when I used a non HEX value .. then debugged andfigured out that this value has to be in hex. Should it be just any random hex or or any specific pattern I need to respect.
答案 0 :(得分:0)
是的,我们与Zipkin兼容,因此您必须拥有适当的64或128位数字 - 请查看Zipkin文档以获取更多信息http://zipkin.io/pages/instrumenting.html。您还可以查看Javadocs - https://github.com/spring-cloud/spring-cloud-sleuth/blob/master/spring-cloud-sleuth-core/src/main/java/org/springframework/cloud/sleuth/Span.java#L55-L62