ErrorPrism: Reconstructing Error Propagation Paths in Cloud Service Systems
Preprint
Abstract
Reliability management in cloud service systems is challenging due to the cascading effect of failures. Error wrapping, a practice prevalent in modern microservice development, enriches errors with context at each layer of the function call stack, constructing an error chain that describes a failure from its technical origin to its business impact. However, this also presents a significant traceability problem when recovering the complete error propagation path from the final log message back to its source. Existing approaches are ineffective at addressing this problem. To fill this gap, we present ErrorPrism in this work for automated reconstruction of error propagation paths in production microservice systems. ErrorPrism first performs static analysis on service code repositories to build a function call graph and map log strings to relevant candidate functions. This significantly reduces the path search space for subsequent analysis. Then, ErrorPrism employs an LLM agent to perform an iterative backward search to accurately reconstruct the complete, multi-hop error path. Evaluated on 67 production microservices at ByteDance, ErrorPrism achieves 97.0% accuracy in reconstructing paths for 102 real-world errors, outperforming existing static analysis and LLM-based approaches. ErrorPrism provides an effective and practical tool for root cause analysis in industrial microservice systems.Keywords
All Related Versions
This publication has 32 references indexed in Scilit:
- LogRCA: Log-Based Root Cause Analysis for Distributed Services2024
- Mining Root Cause Knowledge from Cloud Service Incident Investigations for AIOps2022
- Graph-based Incident Aggregation for Large-Scale Online Service Systems2021
- Neural Knowledge Extraction From Cloud Service Incidents2021
- Scalable Statistical Root Cause Analysis on App Telemetry2021
- How are distributed bugs diagnosed and fixed through system logs?Information and Software Technology, 2020
- Tools and Benchmarks for Automated Log Parsing2019
- AIOps: Real-World Challenges and Research Innovations2019
- Experience Report: System Log Analysis for Anomaly Detection2016
- CauseInfer: Automatic and distributed performance diagnosis with hierarchical causality graph in large distributed systems2014