用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/nexus-labs-automation/backend-observability --skill request-tracing命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | request-tracing |
| description | Instrument HTTP/gRPC endpoints with distributed tracing and RED metrics |
| triggers | ["trace HTTP requests","instrument endpoints","distributed tracing","trace context propagation","gRPC tracing"] |
| priority | 1 |
Every request needs: a span, RED metrics, and trace context propagation.
| Attribute | Example | Note |
|---|---|---|
http.method | GET, POST | Required |
http.route | /api/orders/:id | Template, not actual path! |
http.status_code | 200, 500 | Required |
user.tier | premium | Recommended (not user_id!) |
Rate: http.requests.count{method, route, status}
Errors: http.requests.errors{method, route, error_type}
Duration: http.request.duration{method, route} (histogram p50/p95/p99)
Request → Extract trace context (W3C traceparent)
→ Start span (method + route)
→ Start timer
→ Call handler
→ Set status_code
→ Record duration histogram
→ If 4xx/5xx: increment error counter
→ End span
→ Inject trace context into response
Critical: Always propagate to downstream services:
// Outgoing request
propagator.inject(ctx, headers)
/api/orders/12345 creates millions of unique valueserror_typereferences/methodology/red-methodology.mdreferences/platforms/{platform}/http.md