OpenAI Agents SDK traces
@evalgate/sdk/integrations/openai-agents provides a trace processor for the
OpenAI Agents SDK
in TypeScript. Register it with addTraceProcessor, which keeps the SDK’s
default exporter to OpenAI and adds EvalGate next to it.
setTraceProcessors replaces the default processors, so traces would no
longer reach OpenAI unless you include its processor yourself.
What is sent
The processor buffers the spans of a trace and sends them to/api/otel/v1/traces when the trace ends. It sends:
Span timing, parent links and an error status are kept. Model inputs and
outputs, tool arguments and results, response bodies and error messages are
never sent. A token count the SDK did not report is left out, not sent as
zero. Turn token counts are sent as GenAI usage only when no model span in the
batch reports usage, so tokens are never counted twice.
Options
Status
Tested against theTracingProcessor interface of @openai/agents-core
0.22.0 with fixture spans. No live run has been recorded yet, so the adapter
is fixture_qualified in Integration adapters.