OpenAI Agents (tracing)
OpenAI Agents (tracing)
OpenAI Agents (tracing)
The OpenAI Agents SDK (openai-agents) is a lightweight framework for building multi-agent workflows with tools, handoffs, and guardrails. Respan gives you full observability over every agent run, LLM generation, tool call, and handoff — and gateway routing to 250+ models.
Create an account at platform.respan.ai and grab an API key.
Run npx @respan/cli setup to set up with your coding agent.
See OpenAI Agents SDK gateway setup to route this integration through the Respan gateway.
Open the Traces page to see your workflow with agent spans, LLM generations, tool calls, and handoffs.
Set defaults at initialization — these apply to all spans.
Override per-request using a context scope.
Decorators are not required. All agent runs, LLM calls, tool calls, and handoffs are auto-traced by the instrumentor. Use @workflow and @task to add structure when you want to group agent runs into named workflows with nested tasks.
Tool calls are automatically captured as spans with inputs, outputs, and timing.
Agent-to-agent handoffs are traced with full context.
Stream agent responses with real-time text deltas.