Use Catalyst Tracing when you want more than gateway request logs. The tracing SDKs collect the full shape of an LLM operation: model calls, messages, tool calls, tool results, structured outputs, token usage, agent runs, framework steps, and custom spans you add around your own orchestration code.Documentation Index
Fetch the complete documentation index at: https://docs.inference.net/llms.txt
Use this file to discover all available pages before exploring further.
If you only need request routing through the Catalyst gateway, start with
model provider integrations. If you need trace trees
for agents, tools, framework runs, or non-gateway work, use the tracing SDKs.
Getting Started
Using a coding agent? Paste this into your agent to set up Catalyst trace collection:- Quickstart - install a tracing SDK, configure export, and capture your first provider span.
- Provider and framework guides - instrument OpenAI, Anthropic, LangChain, LangGraph, LangSmith, OpenAI Agents, LiveKit Agents, Claude Agent SDK, Claude Code, Pydantic AI, ElevenLabs Agents, Cursor SDK, Vercel AI SDK, and other supported surfaces.
- Manual spans - wrap custom agents, subprocesses, tools, retrieval, routing, and unsupported SDKs yourself.
- Agent identity - set stable
agent.idvalues so the Agents dashboard groups executions correctly.
Supported Trace Integrations
OpenAI
Trace Chat Completions, tool calls, structured outputs, and Responses API
calls.
Anthropic
Trace Messages API calls, tool use round trips, and prompt-cache usage.
LangChain
Capture chains, agents, model calls, and tools through callback
instrumentation.
LangGraph
Capture graph and node spans while preserving parent-child relationships.
LangSmith
Bridge LangSmith OpenTelemetry spans into Catalyst.
OpenAI Agents
Trace agent runs, tools, handoffs, and nested OpenAI model calls.
LiveKit Agents
Trace LiveKit sessions, model nodes, and function tools through native OTel spans.
ElevenLabs Agents
Trace conversation sessions, transcripts, and client tool calls.
Cursor SDK
Trace Cursor agent runs, streamed messages, and tool calls.
Vercel AI SDK
Trace generateText, streamText, ToolLoopAgent, tool calls, structured output, and usage.
Claude Agent SDK
Trace Claude Agent SDK query loops and yielded messages.
Claude Code SDK
Trace Claude Code CLI subprocess calls and SDK-style agent invocations.
Manual spans
Wrap custom agents, CLI calls, provider routing, and unsupported SDKs.
Agent identity
Set stable agent IDs, display names, and roles for dashboard grouping.
Packages
| Runtime | Package | Primary import |
|---|---|---|
| TypeScript / Node / Bun | @inference/tracing | import { setup } from "@inference/tracing" |
| Python | inference-catalyst-tracing | from inference_catalyst_tracing import setup |
What Gets Captured
| Span data | Examples |
|---|---|
| Inputs and outputs | input.value, output.value |
| Messages | user, system, assistant, tool, and tool-result messages |
| Tool calls | tool names, IDs, JSON arguments, and tool results |
| Model metadata | model name, provider/system, invocation parameters |
| Usage | prompt, completion, total, and prompt-cache token counts when available |
| Agent structure | agent spans, framework spans, tool spans, graph/node spans |
| Agent identity | agent.id, agent.name, and agent.role for Agents dashboard grouping |
| Errors | exception status and error details on failed spans |
How It Works
setup()configures a Catalyst OpenTelemetry exporter.- The SDK instruments the providers or frameworks you enable.
- Your app runs normally.
- Spans are exported to Catalyst and grouped by service, trace, span, and task metadata.
Inspect Traces from the CLI
After spans are flowing into Catalyst, you can inspect the same trace data from the terminal:inf trace and inf span for the full command
reference.
Next Steps
Quickstart
Install an SDK, configure export, and capture your first model span.
Instrumentation examples
Browse copyable examples for tools, agents, framework runs, and manual spans.
Agent identity
Add stable IDs and readable names to agent spans.
Trace CLI
Browse trace trees, timelines, facets, and exports from the terminal.
Troubleshooting
Debug missing spans, missing attributes, and shutdown behavior.