CrossTrace: Efficient Cross-Thread and Cross-Service Span Correlation in Distributed Tracing for Microservices
Linh-An Phan, MingXue Wang, Guangyu Wu, Wang Dawei, Chen Liqun, Li Jin

TL;DR
CrossTrace introduces an efficient, zero-code distributed tracing method for microservices that accurately correlates spans across threads and services without source code modifications, using eBPF and a greedy inference algorithm.
Contribution
It proposes a novel zero-code tracing approach that leverages eBPF and a greedy algorithm for intra- and inter-service span correlation, reducing overhead and security risks.
Findings
Correlates thousands of spans within seconds
Achieves over 90% accuracy in span correlation
Supports large-scale microservice debugging
Abstract
Distributed tracing has become an essential technique for debugging and troubleshooting modern microservice-based applications, enabling software engineers to detect performance bottlenecks, identify failures, and gain insights into system behavior. However, implementing distributed tracing in large-scale applications remains challenging due to the need for extensive instrumentation. To reduce this burden, zero-code instrumentation solutions, such as those based on eBPF, have emerged, allowing span data to be collected without modifying application code. Despite this promise, span correlation, the process of establishing causal relationships between spans, remains a critical challenge in zero-code approaches. Existing solutions often rely on thread affinity, compromise system security by requiring the kernel integrity mode to be disabled, or incur significant computational overhead due…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
