ErrorPrism: Reconstructing Error Propagation Paths in Cloud Service Systems

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Pu, Junsong, Li, Yichen, Chen, Zhuangbin, Liu, Jinyang, Jiang, Zhihan, Chen, Jianjun, Shi, Rui, Zheng, Zibin, Zhang, Tieying
Format: Preprint
Published: 2025
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866912618377117696
author Pu, Junsong
Li, Yichen
Chen, Zhuangbin
Liu, Jinyang
Jiang, Zhihan
Chen, Jianjun
Shi, Rui
Zheng, Zibin
Zhang, Tieying
author_facet Pu, Junsong
Li, Yichen
Chen, Zhuangbin
Liu, Jinyang
Jiang, Zhihan
Chen, Jianjun
Shi, Rui
Zheng, Zibin
Zhang, Tieying
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2509_26463
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle ErrorPrism: Reconstructing Error Propagation Paths in Cloud Service Systems
Pu, Junsong
Li, Yichen
Chen, Zhuangbin
Liu, Jinyang
Jiang, Zhihan
Chen, Jianjun
Shi, Rui
Zheng, Zibin
Zhang, Tieying
Software Engineering
D.2.5
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.
title ErrorPrism: Reconstructing Error Propagation Paths in Cloud Service Systems
topic Software Engineering
D.2.5
url https://arxiv.org/abs/2509.26463