This page collects the most common tracing patterns in one place. Use the integration-specific pages when you want the full setup notes for a provider or framework.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.
Direct SDK Calls
| Pattern | Guide |
|---|---|
| OpenAI chat, tool calling, structured outputs, Responses API | OpenAI traces |
| Anthropic messages, tool use, prompt caching | Anthropic traces |
| Vercel AI SDK generateText, streamText, ToolLoopAgent, tools, structured output | Vercel AI SDK traces |
Stable agent.id, agent.name, and agent.role attributes | Agent identity |
Frameworks And Agents
| Pattern | Guide |
|---|---|
| LangChain agents and tools | LangChain traces |
| LangGraph state graphs | LangGraph traces |
LangSmith traceable functions | LangSmith traces |
| Pydantic AI structured agents | Pydantic AI traces |
| OpenAI Agents tools and handoffs | OpenAI Agents traces |
| LiveKit Agents sessions, model calls, and function tools | LiveKit Agents traces |
| ElevenLabs conversation sessions and client tools | ElevenLabs Agents traces |
| Cursor SDK agent runs, streamed events, and tool calls | Cursor SDK traces |
| Claude Agent SDK query loops | Claude Agent SDK traces |
| Claude Code CLI and SDK-style invocations | Claude Code SDK traces |
Custom Work
Use manual spans when a library cannot be patched or when you want a product operation to group multiple automatic child spans.TypeScript