OpenAI Agents Instrumentor

Auto-instrument OpenAI Agents SDK traces.

1import { Respan } from "@respan/respan";
2import { OpenAIAgentsInstrumentor } from "@respan/instrumentation-openai-agents";
3
4const respan = new Respan({
5 instrumentations: [new OpenAIAgentsInstrumentor()],
6});
7await respan.initialize();

Install

$npm install @respan/instrumentation-openai-agents @openai/agents

Registers a TracingProcessor with the OpenAI Agents SDK and converts agent spans (agent, response, function, generation, handoff, guardrail) into OTEL ReadableSpan objects.