# Tempo Troubleshoot

> Help craft efficient Tempo trace queries, troubleshoot distributed traces, link logs and metrics (Loki/Mimir), and perform request-level root cause analysis.

- Skill: `majiayu000/tempo-troubleshoot` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add majiayu000/tempo-troubleshoot`
- Raw SKILL.md: https://api.skillmd.com/api/skills/majiayu000/tempo-troubleshoot/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: majiayu000 (https://skillmd.com/u/majiayu000)
- Updated: 2026-09-09
- Page: https://skillmd.com/skills/majiayu000/tempo-troubleshoot

---


# Tempo Distributed Tracing Troubleshooting Skill

## What this Skill does

Use for:

- TraceQL queries
- Distributed tracing debugging
- Correlating traces with logs & metrics
- Investigating latency, errors, bottlenecks

## Best Practices

### Always start with service + time range

Examples:

- `resource.service.name = "payments"`
- `span.status = "error"`
- `span.duration > 500ms"`

### Avoid high-cardinality attributes

UUIDs, user IDs → only secondary filters.

### Use TraceQL for structure

Preferring simple comparisons & attribute filters.

### Link with Loki / Mimir when relevant

- Loki: `|= "<trace_id>"`
- Prometheus: find metrics for same window

## Example Queries

### Slow frontend traces

```traceql
{ resource.service.name = "frontend" } | span.duration > 1s
```

### Payment errors

```traceql
{ resource.service.name = "payments", span.status = "error", start >= now() - 15m }
```

## Limitations

- Skill does not execute TraceQL  

