pinpoint-apm / pinpoint

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

Is there any plan to support txid transmission across thread pool WITHOUT wrapping the runnable task or executor service? #9104

Open ljgstudy opened 2 years ago

ljgstudy commented 2 years ago

Currently, we must/should change the biz code if we want to pass the txid from one thread to another pooled thread. See the link

So, Is there any plan to support txid transmission across thread pool WITHOUT wrapping the runnable task or executor service? (eg, decorating thread pool implementation class in the agent)

There is a opensource implementation - Transmittable-Thread-Local, pls check the document.

emeroad commented 2 years ago

This implementation also requires code modifications. I don't know of a better advantage.

ljgstudy commented 2 years ago

I find this PR #6710 answered my question. Thanks!

XiaoHDZXF commented 1 year ago

我发现这个 PR #6710回答了我的问题。谢谢!

嗨,您好,我想请问这个异步线程追踪插件启用后有效吗? 您是如何开启插件的?