# 分布式链路追踪搭建

> 设计跨微服务的链路埋点与跨度命名规范。

**Kind:** skill · **Domain:** Engineering · **ID:** `tech-distributed-tracing`

## 输入输出契约

| 输入 | 输出 |
| --- | --- |
| 服务拓扑、请求路径、现有遥测、追踪后端 | 跨度命名规范、上下文传播方案、采样策略 |

## 工作流程与操作说明


2. Map the request paths across services.
4. Define consistent span names and attributes.
6. Ensure trace context propagates through every hop.
8. Choose a sampling policy balancing cost and coverage.
10. Add example instrumentation for one end-to-end flow.



## 起手提示词

```text
为这个微服务结算链路设计链路追踪埋点。
```

## 常见问题

### 这是一项真实存在于 Clavue Bot 的能力吗？

是的。本页内容由产品内置目录生成，能力名称、输入输出与操作步骤都对应真实可用的场景、技能、MCP 工具或数字员工。

### 需要额外配置工具或连接器吗？

标注「开箱即用」的能力无需额外工具；标注「需连接工具」的能力会列出所需连接器，首次运行时按提示授权即可。

### 它会未经确认就发邮件或付款吗？

不会。发信、付款、提交表单等对外动作会停下来先请你确认，你同意后才会继续。

Canonical: https://ability.clavue.com/zh/skill/tech-distributed-tracing/
