
Correlation Tracing
This implements correlation IDs and distributed tracing across microservices so you can follow requests through your system. You get Express middleware that generates or extracts trace IDs, AsyncLocalStorage for context propagation, and integration patterns for OpenTelemetry. The skill includes Python implementations too, not just Node. Use it when you're debugging why requests are slow or failing in a distributed system and you need to see the full path. The practical bit is the structured logging integration, so your correlation IDs actually show up where you need them. Just watch your sampling rates in production or you'll drown in trace data.
- skills.sh installs
- 429
- GitHub stars
- 379
- last updated
- Aug 21, 2026
Install
$ npx -y skills add aj-geddes/useful-ai-prompts --skill correlation-tracing --agent claude-codeInstalls into .claude/skills of the current project.
Files
Correlation & Distributed Tracing
Table of Contents
Overview
Implement correlation IDs and distributed tracing to track requests across multiple services and understand system behavior.
When to Use
- Microservices architectures
- Debugging distributed systems
- Performance monitoring
- Request flow visualization
- Error tracking across services
- Dependency analysis
- Latency optimization
Quick Start
Minimal working example:
import express from "express";
import { v4 as uuidv4 } from "uuid";
// Async local storage for context
import { AsyncLocalStorage } from "async_hooks";
const traceContext = new AsyncLocalStorage<Map<string, any>>();
interface TraceContext {
traceId: string;
spanId: string;
parentSpanId?: string;
serviceName: string;
}
Sponsors
Details
- Repository
- github.com/aj-geddes/useful-ai-prompts
- Categories
- DevOps & CI/CD, AI & Agent Building, Debugging
- First seen
- Jun 3, 2026
More from aj-geddes/useful-ai-prompts
All 258- Synthetic Monitoring427
- Canary Deployment426
- Service Mesh Implementation426
- Azure Functions424
- Data Replication Setup424
- Graphql Implementation424
- Polyglot Integration424
- Distributed Tracing418
- Multi Cloud Strategy418
- Anomaly Detection
- Causal Inference
- Classification Modeling
- Clustering Analysis
- Cohort Analysis
- Computer Vision
- Correlation Analysis
- Data Cleaning Pipeline
- Data Visualization
- Dimensionality Reduction
- Exploratory Data Analysis
- Feature Engineering
- Funnel Analysis
- ML Model Explanation
- ML Model Training