Meituan Technology Team
Apr 20, 2023 · Backend Development
Analyzing TraceId Loss in Spring @Async and Distributed Tracing Solutions
The article investigates a missing TraceId in a Spring @Async call, analyzes the underlying design of MTrace and Google Dapper, examines ThreadLocal propagation mechanisms, identifies SimpleAsyncTaskExecutor as the root cause, and presents a custom thread‑pool solution while comparing alternative distributed tracing systems.
Distributed TracingJavaMTrace
0 likes · 28 min read
