跳到正文
Skillpedia
测试48k · #4466

distributed-tracing

它能做什么

帮助你理解请求如何在复杂软件系统的不同部分之间流转。它会展示一个请求从头到尾的路径,即使它要经过多个服务。

适用场景

  • ✓当一个请求处理耗时过长时。
  • ✓当你要找出多组件系统中错误发生的位置时。
  • ✓当你要把一个新服务接入现有系统时。

技能链接

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/distributed-tracing/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/distributed-tracing/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“展示一次购买请求如何在系统中流转,从购物车到支付。”

每周 5 个新技能,1 分钟读完。

工作原理

它的工作方式是记录请求经过的每个步骤的信息。这些信息会被发送到一个集中位置,并以请求旅程地图的形式呈现出来。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Distributed Tracing

When to Use

Trace a request across services, diagnose latency and error propagation, or add observable boundaries to a new integration.

Inputs and prerequisites

Record installed SDK and backend versions, permitted collector endpoints, the service graph and a staging request. Inspect the installed version's primary documentation before selecting exporter APIs or deployment configuration. This bundle does not install a tracing backend.

Procedure

  1. Read resources/implementation-playbook.md and identify one user journey.
  2. Configure the matching OpenTelemetry SDK and OTLP exporter before loading instrumented frameworks. Use references/instrumentation.md for propagation, shutdown and privacy checks.
  3. Configure Jaeger using references/jaeger-setup.md, or the existing Tempo/collector deployment's supported configuration. Review listeners, authentication, transport protection, storage and retention before any deployment.
  4. Propagate context over HTTP and asynchronous messages. Use stable operation names and allowlisted attributes. Do not log credentials, raw request bodies or sensitive query values.
  5. Send successful and failing staging requests and verify connected spans in the backend. Record service identity, parentage, duration units and exporter errors.
  6. Measure queue loss and overhead. Select sampling based on those observations; no fixed percentage guarantees coverage or performance.

Example

A checkout calls inventory and payment. Verify that the root request and both downstream operations share a trace, that a simulated payment timeout is recorded, and that no card data is present. Repeat with exporter connectivity unavailable: request handling must retain the application's defined behavior.

Verification

  • Actual trace evidence for each exercised boundary, including queue consumers.
  • Allowed fields only; bounded attribute cardinality.
  • Shutdown flush and exporter failure behavior observed.
  • Access, storage and retention checked independently from UI availability.

Limitations

Head sampling can discard errors before tail sampling sees them. In-memory demos do not prove durable storage. Context propagation and cross-service clocks need actual integration tests; this guide is not a runnable multi-service application.

Sources

常见问题

“Jaeger”或“Tempo”是什么?

它们是帮助可视化请求路径的工具。你可以把它们理解为一张地图,帮你看懂信息的流转过程。

我需要在电脑上安装什么东西吗?

本指南不会安装可视化工具(Jaeger/Tempo),但会讲解如何配置系统,让它把信息发送给这些工具。

密码这类敏感数据会被看到吗?

不会。系统已经配置为不记录密码、信用卡信息等敏感数据。

详情

作者的原始描述

Implement distributed tracing with Jaeger and Tempo for request flow visibility across microservices.

repo: sickn33/agentic-awesome-skills

热度

GitHub 星标
48k
排名
#4466
许可证
MIT
更新时间
2026/10/15

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能