一句话:提出面向 Go 的自动代码转换,用于在微服务中传播全局上下文以支持分布式追踪。
微服务架构将单体基础设施拆分为独立组件,可加速后端开发与部署,但服务组合成大规模分布式系统后,单个服务的行为分析已不足以诊断性能退化或定位故障点,需要借助全局上下文追踪跨系统流动的信息。本文针对 Go 语言提出自动代码转换方法,用于在代码中自动传播上下文(context),从而支撑全局追踪。所提供的摘要仅给出问题背景,未描述具体转换规则、实现细节与评估结果。
Microservices architecture, which is increasingly being adopted by large technology companies, can accelerate development and deployment of backend code by partitioning a monolithic infrastructure into independent components. At the same time, microservices often compose into massively distributed systems, where analyzing the behavior of an individual service may not be enough to diagnose a performance regression or find a point of failure. Instead, a more global view of the entire computation may be required, where some form of global context is used to trace relevant information flowing through the system.
DOI 原文 ·
@inproceedings{paperbot6382,
title = {Automated code transformation for context propagation in Go},
author = {Adam Welc},
booktitle = {FSE},
year = {2021},
doi = {10.1145/3468264.3473918}
}