Watch what Claude Code is doing — in real time — through visual traces in your browser.
Every time Claude Code takes an action (runs a tool, reads a file, etc.), this app captures that event and turns it into a visual timeline you can explore in Grafana.
The flow:
Claude Code → Go Server (port 10987) → OpenTelemetry Collector → Tempo → Grafana
Install these four things:
| Tool | What it is |
|---|---|
| Go | Runs the hook server |
| Docker + Docker Compose | Runs the tracing stack |
| Claude Code | The AI coding tool being monitored |
Create this file inside your project:
.claude/settings.json
Add the hook configuration pointing to http://localhost:10987/hooks. Start a new Claude Code session after saving — type /hooks to confirm it loaded.
docker compose up -dThis starts three background services:
- OpenTelemetry Collector — receives trace data
- Tempo — stores the traces
- Grafana — lets you view them at localhost:3000
go run cmd/server.goThe server is now listening for Claude Code events at localhost:10987.
- Open localhost:3000 — log in with
admin/admin - Go to Connections → Data sources → Add data source
- Choose Tempo, set the URL to
http://tempo:3200, and click Save & test - Open Explore, select the Tempo data source, and search:
{.service.name="claude-code-instrumentation"}
You'll see a timeline of everything Claude Code did.
# Stop everything
docker compose down
# Stop everything AND delete saved traces
docker compose down -vStop the Go server anytime with Ctrl+C.