Distributed Tracing skill for Claude

Implement distributed tracing with Jaeger and Tempo to track requests across microservices and identify performance bottlenecks.

When Claude uses it

Use when debugging microservices, analyzing request flows, or implementing observability for distributed systems.

Distributed Tracing SKILL.md

The full skill file from wshobson/agents (MIT).

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__)

def process_request():
    span = trace.get_current_span()
    trace_id = span.get_span_context().trace_id

    logger.info(
        "Processing request",
        extra={"trace_id": format(trace_id, '032x')}
    )

Troubleshooting

No traces appearing:

  • Check collector endpoint
  • Verify network connectivity
  • Check sampling configuration
  • Review application logs

High latency overhead:

  • Reduce sampling rate
  • Use batch span processor
  • Check exporter configuration

Related Skills

  • prometheus-configuration - For metrics
  • grafana-dashboards - For visualization
  • slo-implementation - For latency SLOs

How to install Distributed Tracing

Claude Code

Copy the skill into your personal skills folder (or into .claude/skills/ inside a project):

npx degit wshobson/agents/plugins/observability-monitoring/skills/distributed-tracing#main ~/.claude/skills/distributed-tracing

Codex

npx degit wshobson/agents/plugins/observability-monitoring/skills/distributed-tracing#main ~/.codex/skills/distributed-tracing

Claude.ai and Claude Desktop

Download the skill folder from GitHub, zip it, and upload it under Settings → Capabilities → Skills.

Frequently asked questions

+What does the Distributed Tracing skill do?

Implement distributed tracing with Jaeger and Tempo to track requests across microservices and identify performance bottlenecks. Use when debugging microservices, analyzing request flows, or implementing observability for distributed systems.

+How do I install Distributed Tracing in Claude Code?

Copy the skill folder into ~/.claude/skills/distributed-tracing, for example with "npx degit wshobson/agents/plugins/observability-monitoring/skills/distributed-tracing#main ~/.claude/skills/distributed-tracing". Claude Code loads it automatically and uses it when a task matches.

+Does Distributed Tracing work with ChatGPT or Codex?

Yes. Distributed Tracing uses the open SKILL.md format. In Codex, put the folder in ~/.codex/skills/distributed-tracing. In Claude.ai, zip the folder and upload it under Settings → Capabilities → Skills.

+Is Distributed Tracing free?

Distributed Tracing is published on GitHub by wshobson under the MIT license, which allows free use.

Related devops & cloud skills

  1. Supabase

    Official

    Use when doing ANY task involving Supabase. Triggers: Supabase products (Database, Auth, Edge Functions, Realtime, Storage, Vectors, Cron,…

    supabase/agent-skills★ 3.1k
  2. Senior Architect

    System architecture decisions with a written rationale: monolith vs microservices, database choice, scaling limits, ADRs, Mermaid diagrams.

    alirezarezvani/claude-skills★ 30k
  3. Vercel Deploy

    Official

    Deploy applications and websites to Vercel. Use when the user requests deployment actions like "deploy my app", "deploy and give me the…

    openai/skills★ 29k
  4. Github Actions Templates

    Create production-ready GitHub Actions workflows for automated testing, building, and deploying applications.

    wshobson/agents★ 43k
  5. Gitlab Ci Patterns

    Build GitLab CI/CD pipelines with multi-stage workflows, caching, and distributed runners for scalable automation.

    wshobson/agents★ 43k
  6. Gitops Workflow

    Implement GitOps workflows with ArgoCD and Flux for automated, declarative Kubernetes deployments with continuous reconciliation.

    wshobson/agents★ 43k
  7. Hybrid Cloud Networking

    Configure secure, high-performance connectivity between on-premises infrastructure and cloud platforms using VPN and dedicated connections.

    wshobson/agents★ 43k
  8. K8s Manifest Generator

    Create production-ready Kubernetes manifests for Deployments, Services, ConfigMaps, and Secrets following best practices and security…

    wshobson/agents★ 43k
  9. K8s Security Policies

    Implement Kubernetes security policies including NetworkPolicy, PodSecurityPolicy, and RBAC for production-grade security.

    wshobson/agents★ 43k

See all devops & cloud skills →

More skills from wshobson

  1. Dotnet Backend Patterns

    Master C#/.NET backend development patterns for building robust APIs, MCP servers, and enterprise applications.

    wshobson/agents★ 43k
  2. E2e Testing Patterns

    Master end-to-end testing with Playwright and Cypress to build reliable test suites that catch bugs, improve confidence, and enable fast…

    wshobson/agents★ 43k
  3. Embedding Strategies

    Select and optimize embedding models for semantic search and RAG applications.

    wshobson/agents★ 43k

All skills by wshobson →

Give your whole team an AI agent with skills

Cody runs managed AI agents your team can message in Slack, Teams, WhatsApp and the web, with 50+ business integrations, scheduled tasks and memory. No terminal required.