wshobson avatar

Distributed Tracing

This gives you the complete setup for distributed tracing with both Jaeger and Grafana Tempo, including OpenTelemetry instrumentation for Python, Node.js, and Go. It covers the Docker Compose and Kubernetes deployments, context propagation between services, and sampling strategies to manage trace volume. The code examples show how to add spans, set attributes, and handle errors across your microservices. I've used this exact setup to debug latency spikes in production where a single slow database query was cascading through six different services. The trace visualization makes it immediately obvious where your bottlenecks are hiding.

skills.sh installs
11.1K
GitHub stars
42.4K
last updated
Aug 21, 2026

Install

$ npx -y skills add wshobson/agents --skill distributed-tracing --agent claude-code

Installs into .claude/skills of the current project.

Files

Distributed Tracing

Implement distributed tracing with Jaeger and Tempo for request flow visibility across microservices.

Purpose

Track requests across distributed systems to understand latency, dependencies, and failure points.

When to Use

  • Debug latency issues
  • Understand service dependencies
  • Identify bottlenecks
  • Trace error propagation
  • Analyze request paths

Detailed patterns and worked examples

Detailed pattern documentation lives in references/details.md. Read that file when the navigation tier above is insufficient.

Best Practices

  1. Sample appropriately (1-10% in production)
  2. Add meaningful tags (user_id, request_id)
  3. Propagate context across all service boundaries
  4. Log exceptions in spans
  5. Use consistent naming for operations
  6. Monitor tracing overhead (<1% CPU impact)
  7. Set up alerts for trace errors
  8. Implement distributed context (baggage)
  9. Use span events for important milestones
  10. Document instrumentation standards

Integration with Logging

Correlated Logs

import logging
from opentelemetry import trace

logger = logging.getLogger(__name__)

Sponsors

Details

Repository
github.com/wshobson/agents
Categories
DevOps & CI/CD, Debugging

More from wshobson/agents

All 174
1wshobson avatarturborepo-cachingwshobson/agentsConfigure Turborepo for efficient monorepo builds with local and remote caching. Use when setting up Turborepo, optimizing build pipelines, or implementing dist11Kskills.sh installs
2github avatarcreate-github-action-workflow-specificationgithub/awesome-copilotCreate a formal specification for an existing GitHub Actions CI/CD workflow, optimized for AI consumption and workflow maintenance.10.8Kskills.sh installs
3google avataragent-platform-tuninggoogle/skillsAgent Platform Model Tuning. Use when you need to fine-tune open models or Gemini models using Agent Platform infrastructure. Don't use for model training outsi9.5Kskills.sh installs
4google avataragent-platform-tuning-managementgoogle/skillsManages GenAI tuning jobs in Agent Platform. Use this to list, get, or cancel ongoing model tuning jobs. Don't use for fine-tuning models (use `agent-platform-t9.4Kskills.sh installs
5github avataraspiregithub/awesome-copilotAspire skill covering the Aspire CLI, AppHost orchestration, service discovery, integrations, MCP server, VS Code extension, Dev Containers, GitHub Codespaces, 9Kskills.sh installs
6github avatarwinapp-cligithub/awesome-copilotWindows App Development CLI (winapp) for building, packaging, signing, debugging, and UI-automating Windows applications. Use when asked to initialize Windows a8.4Kskills.sh installs