Tracezip: Efficient Distributed Tracing via Trace Compression
Zhuangbin Chen, Junsong Pu, Zibin Zheng
摘要
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.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 2 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- Gleaner: A Semantically-Rich and Efficient Online Sampler for Microservice Diagnostics 引用了 Nezha: Interpretable Fine-Grained Root Causes Analysis for Microservices on Multi-modal Observability Data
- Gleaner: A Semantically-Rich and Efficient Online Sampler for Microservice Diagnostics 引用了 Eadro: An End-to-End Troubleshooting Framework for Microservices on Multi-source Data
- LogNexus: Effective Log Compression via Unified Redundancy Encoding 引用了 DeepLog: Anomaly Detection and Diagnosis from System Logs through Deep Learning
- Eadro: An End-to-End Troubleshooting Framework for Microservices on Multi-source Data 引用了 DeepLog: Anomaly Detection and Diagnosis from System Logs through Deep Learning
- Eadro: An End-to-End Troubleshooting Framework for Microservices on Multi-source Data 引用了 MicroRank: End-to-End Latency Issue Localization with Extended Spectrum Analysis in Microservice Environments
引用它的顶会 Paper2
它引用的 Paper13
- DeepLog: Anomaly Detection and Diagnosis from System Logs through Deep LearningMin Du, Feifei Li, Guineng Zheng, Vivek SrikumarCCS 2017 · 1,823 次引用
- MicroRank: End-to-End Latency Issue Localization with Extended Spectrum Analysis in Microservice EnvironmentsGuangba Yu, Pengfei Chen, Hongyang Chen, Zijie Guan 等WWW 2021 · 152 次引用
- Nezha: Interpretable Fine-Grained Root Causes Analysis for Microservices on Multi-modal Observability DataGuangba Yu, Pengfei Chen, Yufeng Li, Hongyang Chen 等FSE 2023 · 131 次引用
- Eadro: An End-to-End Troubleshooting Framework for Microservices on Multi-source DataCheryl Lee, Tianyi Yang, Zhuangbin Chen, Yuxin Su 等ICSE 2023 · 99 次引用
- Lifting the veil on Meta's microservice architecture: Analyses of topology and request workflowsDarby Huye, Yuri Shkuro, Raja R. SambasivanUSENIX ATC 2023 · 65 次引用
相关 Paper
- TracePicker: Optimization-Based Trace Sampling for Microservice-Based SystemsShuaiyu Xie, Jian Wang, Maodong Li, Peiran Chen 等FSE 2025 · 1 次引用
- The Benefit of Hindsight: Tracing Edge-Cases in Distributed SystemsLei Zhang, Zhiqiang Xie, Vaastav Anand, Ymir Vigfusson 等NSDI 2023 · 50 次引用
- TraceWeaver: Distributed Request Tracing for Microservices Without Application ModificationSachin Ashok, Vipul Harsh, Brighten Godfrey, Radhika Mittal 等SIGCOMM 2024 · 14 次引用
- TraStrainer: Adaptive Sampling for Distributed Traces with System Runtime StateHaiyu Huang, Xiaoyu Zhang, Pengfei Chen, Zilong He 等FSE 2024 · 4 次引用
- Mint: Cost-Efficient Tracing with All Requests Collection via Commonality and Variability AnalysisHaiyu Huang, Cheng Chen, Kunyi Chen, Pengfei Chen 等ASPLOS 2025 · 6 次引用
