简体   繁体   English

X-B3-SpanId常数在哪里定义?

[英]Where is X-B3-SpanId constant defined?

In https://static.javadoc.io/org.springframework.cloud/spring-cloud-sleuth-core/1.2.0.RELEASE/org/springframework/cloud/sleuth/Span.html#SPAN_ID_NAME there's a constant for X-B3-SpanId but that constant does not appear to be in spring-cloud-sleuth-core-2.1.0.RELEASE.jar https://static.javadoc.io/org.springframework.cloud/spring-cloud-sleuth-core/1.2.0.RELEASE/org/springframework/cloud/sleuth/Span.html#SPAN_ID_NAME中X-B3-SpanId有一个常数X-B3-SpanId但该常量似乎不在spring-cloud-sleuth-core-2.1.0.RELEASE.jar

Is there a new place for that constant? 有没有这个常数的新地方?

With Sleuth 2.0 we've migrated to Brave ( https://github.com/apache/incubator-zipkin-brave ) as the new Tracer library. 借助Sleuth 2.0,我们已迁移到Brave( https://github.com/apache/incubator-zipkin-brave )作为新的Tracer库。 The new place for that constant is here https://github.com/apache/incubator-zipkin-brave/blob/v5.6.4/brave/src/main/java/brave/propagation/B3Propagation.java but mind you that it's a package scope value. 该常量的新位置在这里https://github.com/apache/incubator-zipkin-brave/blob/v5.6.4/brave/src/main/java/brave/propagation/B3Propagation.java,但请注意,它是包范围值。 Which means that you have to define your own constant. 这意味着您必须定义自己的常量。 You can however retrieve it via the https://github.com/apache/incubator-zipkin-brave/blob/9fc4a977aba15c5af7a4bacddaf4d7f7267a663a/brave/src/main/java/brave/propagation/B3Propagation.java#L81 keys method. 但是,您可以通过https://github.com/apache/incubator-zipkin-brave/blob/9fc4a977aba15c5af7a4bacddaf4d7f7267a663a/brave/src/main/java/brave/propagation/B3Propagation.java#L81 keys方法进行检索。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM