distributed-tracing – skill Khác cho agent AI
Triển khai distributed tracing với Jaeger và Tempo để quan sát luồng request qua các microservice.
Cài skill distributed-tracing bằng một lệnh
Chọn công cụ bạn đang dùng, copy lệnh và dán vào terminal. Skill sẽ nằm trong thư mục skills của công cụ đó và sẵn sàng dùng ở phiên làm việc tiếp theo.
Claude Code
mkdir -p ~/.claude/skills && curl -fsSL https://skill.dn1nguoi.com/z/distributed-tracing-42f16.tgz | tar xz -C ~/.claude/skills
Gọi trong Claude Code: /distributed-tracing – rồi mô tả công việc bạn muốn làm.
Codex
mkdir -p ~/.codex/skills && curl -fsSL https://skill.dn1nguoi.com/z/distributed-tracing-42f16.tgz | tar xz -C ~/.codex/skills
Gọi trong Codex: $distributed-tracing – rồi mô tả công việc bạn muốn làm.
Hermes Agent
mkdir -p ~/.hermes/skills && curl -fsSL https://skill.dn1nguoi.com/z/distributed-tracing-42f16.tgz | tar xz -C ~/.hermes/skills
Gọi trong Hermes Agent: /distributed-tracing – rồi mô tả công việc bạn muốn làm.
DeepSeek
mkdir -p ~/.deepcode/skills && curl -fsSL https://skill.dn1nguoi.com/z/distributed-tracing-42f16.tgz | tar xz -C ~/.deepcode/skills
Gọi trong DeepSeek: /distributed-tracing – rồi mô tả công việc bạn muốn làm.
Nội dung SKILL.md
Nội dung SKILL.md gốc bằng tiếng Anh.
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
- [OpenTelemetry exporter documentation](https://opentelemetry.io/docs/languages/python/exporters/) — use the installed SDK's matching documentation.
Skill liên quan
- doc2math – Chuyển tài liệu kỹ thuật dạng văn bản thành Đặc tả bài toán toán học có căn cứ, gồm…
- solana – Truy vấn ví, token, giao dịch và NFT trên Solana theo USD.
- domain-authority-simulator – Domain Authority Simulator. Dùng khi làm việc với tín hiệu domain và một rubric chấm…
- domain-comparison-report-tool – Domain Comparison Report Tool. Dùng khi làm việc với hai hoặc nhiều domain có chỉ số so…
- domain-modeling – Xây dựng và hoàn thiện mô hình miền của dự án. Dùng khi người dùng muốn chốt thuật ngữ…
- doom-pay – Thêm liên kết thanh toán DOOM và wDOOM tự lưu ký với DoomPay, rồi xác minh biên nhận…
- songwriting-and-ai-music – Kỹ thuật sáng tác ca từ và prompt tạo nhạc AI với Suno.
- spike – Thử nghiệm dùng-rồi-bỏ để kiểm chứng ý tưởng trước khi xây dựng.