paperbot · PL 论文追踪

全部论文 待读 收藏

Enhancing Trace-Based Root Cause Analysis for Microservice Systems via Code Change Understanding

借助代码变更理解增强微服务系统中基于追踪的根因分析
ASE Proceedings of the 41st IEEE/ACM International Conference on Automated Software Engineering2026引用 0 inbox
Min Zhang, Chenxi Zhang, Senyu Xie, Shihong Chen, Lei Wu, Xin Peng
crossref: 2026-10-09

AI 速览

一句话:提出DeltaRCA,将LLM驱动的代码变更影响分析与基于谱的根因定位结合,提升微服务RCA精度。

微服务系统动态结构、复杂调用和持续更新使根因分析困难;现有基于追踪或指标的RCA方法多忽略软件变更,而代码与部署更新常是生产故障的根因。论文提出“RCA左移”思路,在设计阶段主动理解变更语义,并实现DeltaRCA:使用LLM agent从代码变更中识别语义受影响的操作,将其纳入异构图,指导基于谱的故障定位中的权重传播。作者在两个微服务基准、200个注入故障案例上评估,DeltaRCA优于现有最优方法,平均达到63% Top-1和79% Top-3准确率;消融分析表明,引入变更理解能显著提升定位精度。

问题
微服务系统的动态结构、复杂跨服务调用和持续更新导致生产故障根因分析困难,而现有运行时RCA方法多数忽略常为故障根因的代码与部署变更。
方法
DeltaRCA通过LLM agent分析代码变更的语义影响,识别受影响操作,并融入异构图以引导基于谱的故障定位权重传播。
评估
在两个微服务基准的200个注入故障案例上与现有最优方法比较,平均达到63% Top-1和79% Top-3准确率,消融分析显示变更理解显著提升定位精度。
原文摘要(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.

链接与引用

DOI 原文 · PDF(开放获取) ·

BibTeX
@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}
}