知识卡片

普通读书笔记卡 · 3455

跨服务追踪定位故障

理解等级:中级

一次请求经过多个服务时,单个进程的日志不足以看清整条调用链。分布式日志与追踪把请求在服务间的经过串起来,帮助定位哪个环节出错,并据此选择后续处置。追踪提供可见性,不会自行保证交易状态一致。

这张卡片看不懂?

已有反馈 · 0 / 10 条

    还没有人提交反馈。

    原书出处

    参考来源

    - 位置:《Microservice APIs》第 1 章《What are microservice APIs?》(源文件:_epub-src/OEBPS/Text/01.htm) - 结论依据:1.3.4 节指出协作服务必须知道错误种类并能追踪请求跨服务的周期,随后明确要求配置分布式日志和追踪以获得事务可见性。 - 原始内容:In the case of services that work collaboratively to serve certain requests, you also must be able to trace the cycle of the request as it goes across the different services to be able to spot errors during the transaction. To gain visibility of distributed transactions, you’ll need to set up distributed logging and tracing for your microservices.