Skip to main content
Agent skill

Distributed Tracing

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.

Get started

Get the complete skill folder, including its scripts and reference files.

When to use this skill

Use Distributed Tracing when an AI agent needs a reusable SKILL.md workflow for this job: 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.

When not to use it

Skip Distributed Tracing when the task is outside the analysis category, or when a more specific skill in this directory already covers the same workflow with clearer triggers.

How to install

Where will you use it?

Install scope
Claude Code folder setup
mkdir -p ~/.claude/skills/distributed-tracing
# Save SKILL.md to ~/.claude/skills/distributed-tracing/SKILL.md
  1. Claude Code personal install: place the skill and its bundled files at ~/.claude/skills/distributed-tracing/SKILL.md. For a shared project, commit the folder at .claude/skills/distributed-tracing/ instead.
  2. Current Claude Code detects SKILL.md changes in watched directories during the session. If you just created a top-level skills directory, run /reload-skills. Check that the skill is listed before testing its trigger.
  3. For Claude chat or Cowork in the Desktop app, manage uploaded skills in Customize > Skills; copying files into a local Claude Code folder is not a Desktop install. Other agents may use different install locations.

Full install guide for Claude, Cursor, and Codex →

Try a starter prompt

After installing the skill, paste this starter prompt into your agent to verify it triggers on a small task.

Starter prompt
Use the Distributed Tracing skill for this task: Debug latency issues. Confirm any required inputs or files before making changes.

What supports this recommendation?

81/100 provisional content score. This measures documentation, practical detail and source signals. It is not a measured task success rate or a security certification.

Documentation
90/100
Practical detail
82/100
Source evidence
63/100
Source signals
80/100
Model compatibility evidence
  • claudeuntested

    No model-specific signal or recorded compatibility test was found.

  • chatgptuntested

    No model-specific signal or recorded compatibility test was found.

  • geminiuntested

    No model-specific signal or recorded compatibility test was found.

  • copilotuntested

    No model-specific signal or recorded compatibility test was found.

  • llamauntested

    No model-specific signal or recorded compatibility test was found.

  • perplexityuntested

    No model-specific signal or recorded compatibility test was found.

  • mistraluntested

    No model-specific signal or recorded compatibility test was found.

  • grokuntested

    No model-specific signal or recorded compatibility test was found.

Inferred compatibility is based on content signals. Check the app, its available tools and setup requirements before running a skill.

What this skill does

# 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

```python 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

Intended uses

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

Implementation notes

  • Sample appropriately (1-10% in production)
  • Add meaningful tags (userid, requestid)
  • Propagate context across all service boundaries
  • Log exceptions in spans
  • Use consistent naming for operations
  • Monitor tracing overhead (<1% CPU impact)
  • Set up alerts for trace errors
  • Implement distributed context (baggage)
  • Use span events for important milestones
  • Document instrumentation standards

Try it, then tell us how it went

A copied prompt does not tell us whether the task worked. Report your result after checking the output. We collect your tool and outcome, never your files or prompt.