一句话:提出DeltaRCA,将LLM驱动的代码变更影响分析与基于谱的根因定位结合,提升微服务RCA精度。
微服务系统动态结构、复杂调用和持续更新使根因分析困难;现有基于追踪或指标的RCA方法多忽略软件变更,而代码与部署更新常是生产故障的根因。论文提出“RCA左移”思路,在设计阶段主动理解变更语义,并实现DeltaRCA:使用LLM agent从代码变更中识别语义受影响的操作,将其纳入异构图,指导基于谱的故障定位中的权重传播。作者在两个微服务基准、200个注入故障案例上评估,DeltaRCA优于现有最优方法,平均达到63% Top-1和79% Top-3准确率;消融分析表明,引入变更理解能显著提升定位精度。
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.
@inproceedings{paperbot12517,
title = {Enhancing Trace-Based Root Cause Analysis for Microservice Systems via Code Change Understanding},
author = {Min Zhang and Chenxi Zhang and Senyu Xie and Shihong Chen and Lei Wu and Xin Peng},
booktitle = {ASE},
year = {2026},
doi = {10.1145/3832783.3837424}
}