OpenAI Agents Instrumentor

Auto-instrument OpenAI Agents SDK traces.

import { Respan } from "@respan/respan";
import { OpenAIAgentsInstrumentor } from "@respan/instrumentation-openai-agents";
const respan = new Respan({
instrumentations: [new OpenAIAgentsInstrumentor()],
});
await 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.