-
Transmitter类中的一个WeakHashMap的变量threadLocalHolder有什么用,在实际使用过程中这个Map一直都是空的,不清楚它的作用是什么
https://github.com/alibaba/transmittable-thread-local/blob/d4a9aa8a2e3f38da6f74e81a70eae5f8673a4c21/src/main/java/…
-
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 he…
chkch updated
4 years ago
-
I understand why opentelemetry has a bias towards google's gRPC library. This codebase primarily borrows from work that started internally, became google's instrumentation-java, later renamed to openc…
-
### Question
- I use "ali transmittable-thread-local" for support share traceInfo between two threads or threadpool.I open log support ,the log is right.But i query traceId in "SkyWalking-UI" show mo…
-
I want to intercept lambda-expressions, use LambdaInstrumentationStrategy.ENABLED, but get some error. here is my byteBuddy example code:
`new AgentBuilder.Default()
.with(AgentBuild…
-
我目前测试下来,发现只需要使用`TransmittableThreadLocal`就可以跨线程池传递,疑问是到底要不要进行线程的修饰?
或者说,是不是可以不用配合下面的使用三种方式,直接使用`TransmittableThreadLocal`就可以了
-------
`TransmittableThreadLocal`有3种使用方式:
1. [修饰`Runnable`和`C…
-
最新的Logback1.2.3似乎不支持MDC线程继承了,贵公司现在是怎样的日志追踪方案 @wuwen5
(Question From @Qsimple see https://github.com/alibaba/transmittable-thread-local/issues/73#issuecomment-329192927 )
-
你好,在github上看见`transmittable-thread-local`,非常想使用。
但是关于通过`javaagent`的方式使用不是很理解,想请问一下具体使用方式:
1. 在`pom`中引入`dependency`
1. 在启动脚本中增加:`-javaagent:WEB-INF/lib/transmittable-thread-local-2.10.2.jar`
…
-
请问 TransmittableThreadLocal 在线程切换时进行上下文备份和回放,为什么使用 HashMap 而非 WeakHashMap 进行存储?
对应代码:
- `Map, Object>();`
- `Map, Object>();`
这样把原来是弱引用的 key 变成了强引用,可能导致父线程已经执行完了,但由于子线程使用了 TransmittableThre…
-
源码学习提问
```java
Runnable runnable = new Runnable() {
@Override
public void run() {
System.out.println(transmittableThreadLocal.get());
transmittableThreadLocal.set("aaaa…