Enhancing Trace-Based Root Cause Analysis for Microservice Systems via Code Change Understanding
Open Access
- 7 October 2026
- conference paper
- Published by Association for Computing Machinery (ACM)
- p. 1612-1624
Abstract
Microservice architecture has become the dominant design pattern for modern web applications. However, the dynamic structure, complex inter-service invocations, and continuous updates of microservices make root cause analysis (RCA) particularly challenging. Existing RCA methods typically rely on runtime monitoring data such as traces and metrics, and adopt techniques including deep learning, graph analysis, and spectrum analysis. However, most of these methods overlook software changes, even though code and deployment updates are often the underlying causes of production failures. This paper introduces the idea of RCA left-shifting, which shifts part of the diagnostic effort to the development stage by proactively understanding change semantics before failures occur. Based on this insight, we propose DeltaRCA, a trace-based RCA approach that integrates large language model (LLM)-driven change impact analysis with spectrum-based root cause localization. DeltaRCA uses an LLM agent to identify semantically affected operations from code changes. This information is incorporated into a heterogeneous graph to guide the weight propagation process in spectrum-based fault localization. We evaluate DeltaRCA on two microservice benchmarks with 200 injected fault cases. The results show that DeltaRCA outperforms state-of-the-art methods, achieving 63% Top-1 and 79% Top-3 accuracy on average. Furthermore, ablation analysis demonstrates that incorporating change understanding significantly improves localization precision.Keywords
Funding Information
- National Key R&D Program of China (2024YFB4505904)
- Natural Science Basic Research Program of Shaanxi Province (2025JC-YBQN-851)
- National Natural Science Foundation of China (62502360)
This publication has 26 references indexed in Scilit:
- Robust Failure Diagnosis of Microservice System Through Multimodal DataIEEE Transactions on Services Computing, 2023
- An Empirical Study on Change-induced Incidents of Online Service Systems2023
- Enjoy your observability: an industrial survey of microservice tracing and analysisEmpirical Software Engineering, 2021
- Practical Root Cause Localization for Microservice Systems via Trace Analysis2021
- MicroHECL: High-Efficient Root Cause Localization in Large-Scale Microservice Systems2021
- Unsupervised Detection of Microservice Trace Anomalies through Service-Level Deep Bayesian Networks2020
- MicroRCA: Root Cause Localization of Performance Issues in Microservices2020
- The pains and gains of microservices: A Systematic grey literature reviewJournal of Systems and Software, 2018
- A Systematic Mapping Study in Microservice Architecture2016
- On the Accuracy of Spectrum-based Fault Localization2007