setting-up-distributed-tracing
This skill automates the setup of distributed tracing for microservices. it helps developers implement end-to-end request visibility by configuring context propagation, span creation, trace collection, and analysis. use this skill when the user re...
- License 许可
- MIT
- 最近更新
- 2025-12-18
- Stars
- ★ 29
- Forks
- 9
01 前言 Front Matter
- name
- setting-up-distributed-tracing
- license
- MIT
- description
- This skill automates the setup of distributed tracing for microservices. it helps developers implement end-to-end request visibility by configuring context propagation, span creation, trace collection, and analysis. use this skill when the user re...
- allowed-tools
- [ "Read", "Write", "Edit", "Grep", "Glob", "Bash" ]
02 资源文件 12
- 资产文件assets/README.md373 B
- 许可证LICENSE1.0 KB
- 参考文档README.md793 B
- 参考文档references/README.md424 B
- 脚本scripts/bist100_prices.py16.8 KB
- 脚本scripts/instrument_service.py2.9 KB
- 脚本scripts/README.md426 B
- 脚本scripts/setup_jaeger.sh2.7 KB
- 脚本scripts/telegram_send.py13.2 KB
- 脚本scripts/turkish_brief_card.py20.6 KB
- 参考文档SOURCE.md337 B
- 参考文档TRUST.auto.yaml2.1 KB
03 SKILL.md 正文
Overview
This skill streamlines the process of setting up distributed tracing in a microservices environment. It guides you through the key steps of instrumenting your services, configuring trace context propagation, and selecting a backend for trace collection and analysis, enabling comprehensive monitoring and debugging.
How It Works
- Backend Selection: Determines the preferred tracing backend (e.g., Jaeger, Zipkin, Datadog).
- Instrumentation Strategy: Designs an instrumentation strategy for each service, focusing on key operations and dependencies.
- Configuration Generation: Generates the necessary configuration files and code snippets to enable distributed tracing.
When to Use This Skill
This skill activates when you need to:
- Implement distributed tracing in a microservices application.
- Gain end-to-end visibility into request flows across multiple services.
- Troubleshoot performance bottlenecks and latency issues.
Examples
Example 1: Adding Tracing to a New Microservice
User request: "setup tracing for the new payment service"
The skill will:
- Prompt for the preferred tracing backend (e.g., Jaeger).
- Generate code snippets for OpenTelemetry instrumentation in the payment service.
Example 2: Troubleshooting Performance Issues
User request: "implement distributed tracing to debug slow checkout process"
The skill will:
- Guide the user through instrumenting relevant services in the checkout flow.
- Provide configuration examples for context propagation.
Best Practices
- Backend Choice: Select a tracing backend that aligns with your existing infrastructure and monitoring tools.
- Sampling Strategy: Implement a sampling strategy to manage trace volume and cost, especially in high-traffic environments.
- Context Propagation: Ensure proper context propagation across all services to maintain trace continuity.
Integration
This skill can be used in conjunction with other plugins to automate the deployment and configuration of tracing infrastructure. For example, it can integrate with infrastructure-as-code tools to provision Jaeger or Zipkin clusters.
04 同仓库更多 Skills
testing-visual-regression
Detect visual changes in UI components using screenshot comparison. Use when detecting unintended UI changes or pixel differences. Trigger with phrases like "test visual changes", "compare screenshots", or "detect UI regressions".
generating-unit-tests
Automatically generate comprehensive unit tests from source code covering happy paths, edge cases, and error conditions. Use when creating test coverage for functions, classes, or modules. Trigger with phrases like "generate unit tests", "create tests for", or "add test coverage".
generating-test-reports
Generate comprehensive test reports with metrics, coverage, and visualizations. Use when performing specialized testing. Trigger with phrases like "generate test report", "create test documentation", or "show test metrics".
orchestrating-test-execution
Coordinate parallel test execution across multiple environments and frameworks. Use when performing specialized testing. Trigger with phrases like "orchestrate tests", "run parallel tests", or "coordinate test execution".
managing-test-environments
Provision and manage isolated test environments with configuration and data. Use when performing specialized testing. Trigger with phrases like "manage test environment", "provision test env", or "setup test infrastructure".
generating-test-doubles
Generate mocks, stubs, spies, and fakes for dependency isolation. Use when creating mocks, stubs, or test isolation fixtures. Trigger with phrases like "generate mocks", "create test doubles", or "setup stubs".