songxiaosheng opened a new issue, #11172: URL: https://github.com/apache/dubbo/issues/11172
<!-- If you need to report a security issue please visit https://github.com/apache/dubbo/security/policy --> - [ ] I have searched the [issues](https://github.com/apache/dubbo/issues) of this repository and believe that this is not a duplicate. ## Describe the proposal <!-- Please use this for a concrete design proposal for functionality. --> <!-- If you just want to request a new feature and discuss the possible business value, create a Feature Request. --> En:Generally, in Java, traceid and spanid are passed through the thread context, but in the case of multi-threading, there will be multiple thread contexts. At this time, the chain will be lost when the same request reaches the child thread. At this time, we need to copy the link data from one thread to the context of another thread. If you don’t know how to copy, you can consider how to share data between threads, such as using shared variables such as member variables. 中文:一般在Java中traceid和spanid我们都是通过线程上下文来传递的但是出现了多线程的情况下就会有多个线程上下文的情况,这个时候就会导致同一个请求中到了子线程时候丢失了链路追踪数据,这个时候就需要我们将链路数据从一个线程拷贝到另外一个线程的上下文中,如果不知道如何拷贝可以考虑下线程间是如何共享数据的比如使用成员变量这种共享变量 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
