Tracezip: Efficient Distributed Tracing via Trace Compression
Zhuangbin Chen, Junsong Pu, Zibin Zheng
Abstract
Distributed tracing serves as a fundamental building block in the monitoring and testing of cloud service systems. To reduce computational and storage overheads, the de facto practice is to capture fewer traces via sampling. However, existing work faces a trade-off between the completeness of tracing and system overhead. On one hand, head-based sampling indiscriminately selects requests to trace when they enter the system, which may miss critical events. On the other hand, tail-based sampling first captures all requests and then selectively persists the edge-case traces, which entails the overheads related to trace collection and ingestion. Taking a different path, we propose Tracezip in this paper to enhance the efficiency of distributed tracing via trace compression. Our key insight is that there exists significant redundancy among traces, which results in repetitive transmission of identical data between services and the backend. We design a new data structure named Span Retrieval Tree (SRT) that continuously encapsulates such redundancy at the service side and transforms trace spans into a lightweight form. At the backend, the complete traces can be seamlessly reconstructed by retrieving the common data that are already delivered by previous spans. Tracezip includes a series of strategies to optimize the structure of SRT and a differential update mechanism to efficiently synchronize SRT between services and the backend. Our evaluation on microservices benchmarks, popular cloud service systems, and production trace data demonstrates that Tracezip can achieve substantial performance gains in trace collection with negligible overhead. We have implemented Tracezip inside the OpenTelemetry Collector, making it compatible with existing tracing APIs.
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Your agent calls
Luneget_paper_fulltext
Free to start. No credit card required.
Terminal
Install the CLIlune papers fulltext 5a36c660-da4f-4ff2-adbe-8549c191c81fCited by top-tier papers2
- Gleaner: A Semantically-Rich and Efficient Online Sampler for Microservice DiagnosticsYifan Yang, Aoyang Fang, Songhan Zhang, Pinjia HeISSTA 2026
- LogNexus: Effective Log Compression via Unified Redundancy EncodingYang Liu, Kaiming Zhang, Zhuangbin Chen, Zibin ZhengISSTA 2026
Builds on13
- DeepLog: Anomaly Detection and Diagnosis from System Logs through Deep LearningMin Du, Feifei Li, Guineng Zheng, Vivek SrikumarCCS 2017 · 1,823 citations
- MicroRank: End-to-End Latency Issue Localization with Extended Spectrum Analysis in Microservice EnvironmentsGuangba Yu, Pengfei Chen, Hongyang Chen, Zijie Guan et al.WWW 2021 · 152 citations
- Nezha: Interpretable Fine-Grained Root Causes Analysis for Microservices on Multi-modal Observability DataGuangba Yu, Pengfei Chen, Yufeng Li, Hongyang Chen et al.FSE 2023 · 131 citations
- Eadro: An End-to-End Troubleshooting Framework for Microservices on Multi-source DataCheryl Lee, Tianyi Yang, Zhuangbin Chen, Yuxin Su et al.ICSE 2023 · 99 citations
- Lifting the veil on Meta's microservice architecture: Analyses of topology and request workflowsDarby Huye, Yuri Shkuro, Raja R. SambasivanUSENIX ATC 2023 · 65 citations
Related papers
- The Benefit of Hindsight: Tracing Edge-Cases in Distributed SystemsLei Zhang, Zhiqiang Xie, Vaastav Anand, Ymir Vigfusson et al.NSDI 2023 · 50 citations
- TracePicker: Optimization-Based Trace Sampling for Microservice-Based SystemsShuaiyu Xie, Jian Wang, Maodong Li, Peiran Chen et al.FSE 2025 · 1 citation
- TraceWeaver: Distributed Request Tracing for Microservices Without Application ModificationSachin Ashok, Vipul Harsh, Brighten Godfrey, Radhika Mittal et al.SIGCOMM 2024 · 14 citations
- TraStrainer: Adaptive Sampling for Distributed Traces with System Runtime StateHaiyu Huang, Xiaoyu Zhang, Pengfei Chen, Zilong He et al.FSE 2024 · 4 citations
- Mint: Cost-Efficient Tracing with All Requests Collection via Commonality and Variability AnalysisHaiyu Huang, Cheng Chen, Kunyi Chen, Pengfei Chen et al.ASPLOS 2025 · 6 citations
