Set up Respan
Set up Respan
- Sign up — Create an account at platform.respan.ai
- Create an API key — Generate one on the API keys page
- Add credits or a provider key — Add credits on the Credits page or connect your own provider key on the Integrations page
What is OpenAI Agents?
This integration is for agent tracing. For the OpenAI gateway integration, see OpenAI SDK.

Setup
View your trace
Open the Traces page in the Respan dashboard. Your trace should appear within a few seconds.
Configuration
The Python exporter accepts these constructor parameters:| Parameter | Required | Description |
|---|---|---|
api_key | Yes | Your Respan API key. Falls back to RESPAN_API_KEY. |
endpoint | Yes | Ingest endpoint URL. Falls back to RESPAN_OAIA_TRACING_ENDPOINT. |
RESPAN_API_KEY and RESPAN_BASE_URL from environment variables. You can also pass metadata on a per-trace basis:
Tool calls
Agents can use tools to perform specific tasks. Tool calls are automatically captured in the trace.Handoffs
Agents can hand off conversations to other specialized agents. Handoff events are captured in the trace.Observability
With this integration, Respan auto-captures:- Agent runs — each agent execution as a span
- LLM calls — model, input/output messages, token usage
- Tool calls — function name, arguments, return value
- Handoffs — which agent transferred control and to whom
- Errors — failed runs and error details
