distributed-tracing
Skill này làm gì
Giúp hiểu cách các yêu cầu đi qua các phần khác nhau của một hệ thống phần mềm phức tạp. Nó cho thấy đường đi của một yêu cầu từ đầu đến cuối, kể cả khi nó đi qua nhiều dịch vụ.
Khi nào nên dùng
- ✓Khi một yêu cầu mất quá nhiều thời gian để hoàn thành.
- ✓Để tìm xem lỗi xảy ra ở đâu trong một hệ thống nhiều phần.
- ✓Khi kết nối một dịch vụ mới với hệ thống hiện có.
Liên kết skill
https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/distributed-tracing/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Cho tôi thấy một yêu cầu mua hàng đi qua hệ thống như thế nào, từ giỏ hàng đến thanh toán.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Công cụ hoạt động bằng cách ghi lại thông tin về từng bước của một yêu cầu. Thông tin này được gửi đến một nơi tập trung, nơi có thể xem như một bản đồ hành trình của yêu cầu.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết 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
- Read
resources/implementation-playbook.mdand identify one user journey. - Configure the matching OpenTelemetry SDK and OTLP exporter before loading instrumented frameworks. Use
references/instrumentation.mdfor propagation, shutdown and privacy checks. - 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. - 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.
- Send successful and failing staging requests and verify connected spans in the backend. Record service identity, parentage, duration units and exporter errors.
- 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 — use the installed SDK's matching documentation.
Câu hỏi thường gặp
“Jaeger” hoặc “Tempo” là gì?
Đây là các công cụ giúp trực quan hóa đường đi của yêu cầu. Hãy hình dung chúng như một bản đồ để hiểu luồng hoạt động.
Tôi có cần cài đặt thứ gì trên máy tính không?
Hướng dẫn này không cài đặt các công cụ trực quan hóa (Jaeger/Tempo), nhưng giải thích cách thiết lập hệ thống để gửi thông tin đến chúng.
Tôi có thể thấy dữ liệu nhạy cảm như mật khẩu không?
Không, hệ thống được cấu hình để không ghi lại thông tin nhạy cảm như mật khẩu hoặc số thẻ tín dụng.
Chi tiết
Mô tả gốc của tác giả
Implement distributed tracing with Jaeger and Tempo for request flow visibility across microservices.
Độ phổ biến
- Sao GitHub
- 48k
- Vị trí xếp hạng
- #4466
- Giấy phép
- MIT
- Cập nhật
- 15/10/2026
Bình luận
- …
Thêm skill từ kho mã này
00-andruia-consultant
48kGiúp agent của bạn bắt đầu hoặc cải thiện các dự án AI. Phân tích mã, gợi ý công cụ và lập kế hoạch hành động bằng tiếng Tây Ban Nha.
007
48kCho phép agent của bạn thực hiện kiểm toán bảo mật và mô hình hóa mối đe dọa. Hữu ích để bảo vệ dự án khỏi các cuộc tấn công và lỗ hổng.
10-andruia-skill-smith
48kGiúp agent của bạn tạo hoặc cải thiện các công cụ AI. Xác định cách công cụ hoạt động, viết tài liệu và kiểm tra cấu trúc.
20-andruia-niche-intelligence
48kGiúp agent của bạn tạo bản tóm tắt về một ngành cụ thể. Hữu ích để hiểu bối cảnh, quy tắc, cách người dùng tương tác và rủi ro của dự án.
Skill tương tự
test-driven-development
311kDạy agent của bạn viết kiểm thử thất bại trước, xem nó thất bại, rồi viết đoạn mã ngắn nhất để vượt qua trước khi làm bất kỳ tính năng hay bản sửa nào.
verification-before-completion
311kDạy agent của bạn chạy kiểm tra thực tế và đọc kết quả đầu ra trước khi khẳng định một việc, bản sửa hoặc bản build đã hoàn thành hay vượt qua.
migrate-to-shoehorn
310kThay các ép kiểu rủi ro trong tệp kiểm thử bằng thư viện shoehorn, để các bài kiểm thử dùng dữ liệu một phần vẫn qua được kiểm tra kiểu.