| name | fit-visualize |
| description | Query recorded OpenTelemetry spans with JMESPath and render them as Mermaid sequence diagrams. Use when you need to read spans back from the span index, filter by trace or resource id, and see the call flow without wiring up a tracing UI.
|
Visualize Recorded Spans
fit-visualize reads spans from the span index, filters them with a JMESPath
expression piped on stdin, and prints a Mermaid sequence diagram you can paste
into any Markdown renderer. Use it to see what a service did once spans are
flowing.
When to Use
- Render every span as a diagram —
echo "[]" | npx fit-visualize
- Filter spans by name —
echo "[?name=='ProcessStream']" | npx fit-visualize
- Scope to one trace or resource —
--trace <id> / --resource <id>
Usage
echo "[]" | npx fit-visualize
echo "[?name=='ProcessStream']" | npx fit-visualize
echo "[]" | npx fit-visualize --trace 0f53069dbc62d
echo "[?kind==\`2\`]" | npx fit-visualize --resource common.Conversation.abc123
The JMESPath expression is read from stdin and applied to the spans before
rendering. --trace and --resource narrow the set first. Output is a fenced
mermaid block, ready to paste into Markdown.
Spans are read from the spans storage location. Record spans first — see the
guide below.
Documentation