Categories
Developer Tools AI Agents MCP OpenTelemetry AI Observability Debugging LangChain LLM TracingDeveloper links
tracesage
Every model call, tool call, and subagent behind an AI answer becomes a trace you can click through, replay, and search in the browser. LangChain and LangGraph runs are captured natively, Pydantic AI, OpenAI Agents SDK, CrewAI, and the OpenAI and Anthropic clients join with one line, and any OpenTelemetry exporter can post spans to the built-in collector. Run tracesage connect and Claude Desktop, Claude Code, Cursor, and Codex sessions appear as full traces, with every subagent nested under the call that spawned it. A failed tool call shows up as a red node on the exact step that broke, input and error included. A topology graph maps agents, tools, models, retrievers, and MCP servers, step-through replay walks a run at up to 5x, and a waterfall shows which step took the time and what it cost. Search covers prompts, replies, tool output, and errors across every assistant, and a Threads tab reads whole conversations as chat. Developers get terminal commands to show, watch, diff, and export runs, plus a pytest fixture that asserts which tools were called and how many tokens were used. Traces can flow out as OpenTelemetry spans to Tempo, Jaeger, Datadog, Honeycomb, or Phoenix. A bearer token protects a server exposed beyond localhost, and it refuses a public address without one. Running on a dedicated VPS on RepoCloud with guaranteed CPU, RAM, and SSD, full root SSH access, and a browser serial console. Apache-2.0 licensed.
Benefits
- See exactly which step failed
- A failed tool call appears as a red node on the exact step that broke, with its input, the error, and the full request and response payloads one click away.
- Trace the assistants you use
- One connect command records Claude Desktop, Claude Code, Cursor, and Codex sessions as full traces, with subagents nested under the tool call that spawned them.
- One line per agent framework
- LangChain and LangGraph use a native callback, while Pydantic AI, OpenAI Agents SDK, CrewAI, and the OpenAI and Anthropic clients plug in through a single instrument argument.
- Fits your existing observability stack
- Export every trace as OpenTelemetry spans to Tempo, Jaeger, Datadog, Honeycomb, or Phoenix, or run one collector that ingests spans from any language over OTLP.
Features
- FastAPI and SQLite Core
- A FastAPI service with aiosqlite keeps runs in SQLite with gzipped payload blobs and serves a self-contained UI with vendored assets, so no CDN or external database is needed.
- Interactive SVG Graph
- A custom SVG graph with auto-layout switches between system topology and one run's call tree, with a replay cursor, dark and light themes, and keyboard shortcuts.
- OTLP Ingest and Export
- The serve command's ingest flag accepts OTLP/HTTP spans (protobuf or JSON) at /v1/traces and maps GenAI conventions to run kinds; an export setting sends traces to any OTLP collector.
- MCP Tool Attribution
- Tools loaded from MCP servers are tagged by source, drawn as per-server nodes, and grouped in a Tools tab so you can tell them from hardcoded tools.
- App Connectors
- The connect command installs hooks and a login-started collector for Claude Code, Cursor, Codex, and Claude Desktop, shows each file it changes, and keeps a backup.
- Bearer Token Auth
- Setting TRACESAGE_AUTH_TOKEN enforces bearer authentication on HTTP and WebSocket traffic with constant-time comparison, and the server will not bind 0.0.0.0 without it.