pinpoint icon indicating copy to clipboard operation
pinpoint copied to clipboard

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

Open ljgstudy opened this issue 1 year ago • 3 comments

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.

ljgstudy avatar Aug 05 '22 12:08 ljgstudy

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

emeroad avatar Aug 08 '22 01:08 emeroad

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

ljgstudy avatar Aug 22 '22 08:08 ljgstudy

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

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

XiaoHDZXF avatar Sep 21 '22 14:09 XiaoHDZXF