What problem do you want to solve?
There is currently no OpenTelemetry instrumentation for OpenAI's RealtimeAgent for the openai-agents-sdk. The existing opentelemetry-instrumentation-openai-v2 covers the REST-based Chat Completions API, but the Realtime API has a fundamentally different event-driven lifecycle (persistent sessions, streamed audio deltas, server-side VAD, real-time function calling) that the current instrumentation cannot capture.
Without instrumentation, developers building real-time voice agents have no standardized way to observe session latency, token consumption, tool execution, or error rates — all of which are critical for production reliability.
Describe the solution you'd like
I'd like suggest to extend the opentelemetry-instrumentation-openai-v2 package to also cover the RealtimeAgent use-cases. One way would be to provides a bare-minimum, semantic-convention-compliant listener for the OpenAI Realtime API, which would result in a trace similar to the below example trace:
Describe alternatives you've considered
No response
Additional Context
No response
Would you like to implement a fix?
Yes
Tip
React with 👍 to help prioritize this issue. Please use comments to provide useful context, avoiding +1 or me too, to help us triage it. Learn more here.
What problem do you want to solve?
There is currently no OpenTelemetry instrumentation for OpenAI's RealtimeAgent for the
openai-agents-sdk. The existingopentelemetry-instrumentation-openai-v2covers the REST-based Chat Completions API, but the Realtime API has a fundamentally different event-driven lifecycle (persistent sessions, streamed audio deltas, server-side VAD, real-time function calling) that the current instrumentation cannot capture.Without instrumentation, developers building real-time voice agents have no standardized way to observe session latency, token consumption, tool execution, or error rates — all of which are critical for production reliability.
Describe the solution you'd like
I'd like suggest to extend the
opentelemetry-instrumentation-openai-v2package to also cover theRealtimeAgentuse-cases. One way would be to provides a bare-minimum, semantic-convention-compliant listener for the OpenAI Realtime API, which would result in a trace similar to the below example trace:Describe alternatives you've considered
No response
Additional Context
No response
Would you like to implement a fix?
Yes
Tip
React with 👍 to help prioritize this issue. Please use comments to provide useful context, avoiding
+1orme too, to help us triage it. Learn more here.