About distributed-tracing
distributed-tracing is a skill for setting up request tracing across microservices with Jaeger or Zipkin. It helps teams inspect request flows, service dependencies, and performance bottlenecks.
Key features
- 01Jaeger setup guidance
- 02Zipkin integration guidance
- 03Express tracing middleware
- 04Python Jaeger integration
- 05Distributed context propagation
Use cases
- 01Debug interactions between microservices
- 02Find performance bottlenecks
- 03Track request flows across services
- 04Investigate the root cause of failures
Install
Copy the command and run it in a terminal.
$
npx skills add https:/ / github.com/ aj-geddes/ useful-ai-prompts --skill distributed-tracingAfter installing, type/distributed-tracingin Claude Code to confirm it loaded.
Bundled files
References and scripts installed along with SKILL.md.
references/distributed-context-propagation.mdexpress-tracing-middleware.mdjaeger-setup.mdpython-jaeger-integration.mdzipkin-integration.mdscripts/validate-api.shtemplates/api-scaffold.yamlDetails
From the project READMEDistributed Tracing
Table of Contents
Overview
Set up distributed tracing infrastructure with Jaeger or Zipkin to track requests across microservices and identify performance bottlenecks.
When to Use
- Debugging microservice interactions
- Identifying performance bottlenecks
- Tracking request flows
- Analyzing service dependencies
- Root cause analysis
Quick Start
Minimal working example:
# docker-compose.yml
version: "3.8"
services:
jaeger:
image: jaegertracing/all-in-one:latest
ports:
- "5775:5775/udp"
- "6831:6831/udp"
- "16686:16686"
- "14268:14268"
networks:
- tracing
networks:
tracing:
Reference Guides
Detailed implementations in the references/ directory:
| Guide | Contents |
|---|---|
| Jaeger Setup | Jaeger Setup, Node.js Jaeger Instrumentation |
| Express Tracing Middleware | Express Tracing Middleware |
| Python Jaeger Integration | Python Jaeger Integration |
| Distributed Context Propagation | Distributed Context Propagation |
| Zipkin Integration | Zipkin Integration, Trace Analysis |
Best Practices
✅ DO
- Sample appropriately for your traffic volume
- Propagate trace context across services
- Add meaningful span tags
- Log errors with spans
- Use consistent service naming
- Monitor trace latency
- Document trace format
- Keep instrumentation lightweight
❌ DON'T
- Sample 100% in production
- Skip trace context propagation
- Log sensitive data in spans
- Create excessive spans
- Ignore sampling configuration
- Use unbounded cardinality tags
- Deploy without testing collection
Comments
Markdown supported