mcpField
D
distributed-tracing

distributed-tracing

github.com/aj-geddesCloud & DevOps374415 installsUpdated 34w ago
Repository

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

  1. 01Jaeger setup guidance
  2. 02Zipkin integration guidance
  3. 03Express tracing middleware
  4. 04Python Jaeger integration
  5. 05Distributed context propagation

Use cases

  1. 01Debug interactions between microservices
  2. 02Find performance bottlenecks
  3. 03Track request flows across services
  4. 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-tracing

After installing, type/distributed-tracingin Claude Code to confirm it loaded.

Bundled files

References and scripts installed along with SKILL.md.

references/
distributed-context-propagation.md
express-tracing-middleware.md
jaeger-setup.md
python-jaeger-integration.md
zipkin-integration.md
scripts/
validate-api.sh
templates/
api-scaffold.yaml

Details

From the project README

Distributed 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:

GuideContents
Jaeger SetupJaeger Setup, Node.js Jaeger Instrumentation
Express Tracing MiddlewareExpress Tracing Middleware
Python Jaeger IntegrationPython Jaeger Integration
Distributed Context PropagationDistributed Context Propagation
Zipkin IntegrationZipkin 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