agents/apiTHE ENCYCLOPEDIA
Production

Tracing, usage & debugging

Follow a session from live events to saved history, tool calls, subagent activity, and token usage.

Session ID
Live events
Saved turns & items
Usage review
Fix & evaluate

Start from a session ID

The Platform dashboard Agents logs let you inspect sessions, turns, tool calls, and subagents. Record session identifiers alongside application request identifiers so a user-reported issue can be traced to the correct work.

Distinguish history from live progress

Streams show current activity; saved items and turns describe work already recorded. After a disconnect, retrieve history instead of expecting a new stream to replay every prior event. Handle pagination when reviewing long sessions.

Account for delegated work

Inspect recorded usage for root and subagent turns. Avoid assuming a single visible final answer represents only one model call. Compare usage with actual task outcomes and preserve enough context to reproduce errors without logging secrets.

Know the tracing surface

The public beta documentation describes dashboard tracing. Trace retrieval and external trace exporters are not part of the public beta API. Do not assume Agents SDK tracing integrations are interchangeable with the managed API.

Read the official reference

Check the source for current API fields, account requirements, and service limits.

OpenAI: observability

23 matching topics

What is the OpenAI Agents API?FoundationsAgents API vs Agents SDK vs Responses APIComparisonsAgents API quickstartGetting startedSessions, turns & durable stateCore conceptsHosted vs self-hosted sandboxesInfrastructureConnect MCP servers to Agents APITools & integrationsFunction calling & application toolsTools & integrationsMulti-agent orchestrationCore conceptsStreaming, webhooks & event handlingIntegration guidesFiles, outputs & published artifactsCore conceptsVaults & MCP authenticationTools & integrationsAgent security & credential boundariesProductionTracing, usage & debuggingProductionAgents API pricing & cost planningProductionOpenAI Agents API with PythonGetting startedAgents API with TypeScript & Next.jsIntegration guidesWhat is the OpenAI Agents SDK?FoundationsResponses API in the agent stackFoundationsAgent Skills & SKILL.mdTools & integrationsProgrammatic Tool CallingTools & integrationsRAG, file search & vector storesTools & integrationsWeb search & source citationsTools & integrationsChatKit & Agent BuilderIntegration guides
K to open Esc to close