pinpoint-apm / pinpoint

APM, (Application Performance Management) tool for large-scale distributed systems.
https://pinpoint-apm.gitbook.io/
Apache License 2.0
13.42k stars 3.75k forks source link

TransId is passed across the thread pool in asynchronous execution #6556

Closed chkch closed 4 years ago

chkch commented 4 years ago

I hope that I can provide a solution for the transfer of TransId across threads and thread pools in asynchronous execution. Recently I saw an open source class library of Alibaba. I think it may be helpful for this. I hope that I can support TransId asynchronous across thread pools as soon as possible transfer.

https://github.com/alibaba/transmittable-thread-local

chkch commented 4 years ago

Hi, @koo-taejin , if you have time to look at the TransmittableThreadLocal mentioned in the link above, can pinpoint use the principle of TTL to enhance the asynchronous call using the thread pool

koo-taejin commented 4 years ago

hi @chkch

Thank you for sharing this project with me. However, it is difficult to understand because most of documents are written in Chinese.

Fortunately, we have been handling properly asynchronous call without any difficulties. (Although It has more work than the synchronous call.)

If I meet big problem to handle asynchronous call, then I will consider it deeply.

thanks :)

stale[bot] commented 4 years ago

This issue/proposal has been automatically marked as stale because it hasn't had any recent activity. It will automatically be closed if no further activity occurs for 20days. If you think this should still be open, or the problem still persists, just pop a reply in the comments and one of the maintainers will (try!) to follow up. Thank you for your interest and contribution to the Pinpoint Community.

superbool commented 4 years ago

@koo-taejin Here is English documents about https://github.com/alibaba/transmittable-thread-local https://github.com/alibaba/transmittable-thread-local/blob/master/README-EN.md