sdk-python icon indicating copy to clipboard operation
sdk-python copied to clipboard

OpenAI OTel logging

Open jssmith opened this issue 1 week ago • 0 comments

What was changed

Aim: Improve compatibility between OpenAI Agents SDK (OpenAIAgentsPlugin) and OTel logging.

  • Adds OtelTracingPlugin - a high plugin for OpenTelemetry integration that simplifies OTEL setup for Temporal workflows .
    • Automatic sandbox passthrough configuration for opentelemetry modules
    • Automatic replay filtering to prevent duplicate spans during workflow replay

Why?

We experienced problems using Otel with OpenTelemetry. User issues included missing spans, disconnected spans, and unwanted addition of Temporal execution spans (e.g., startActivity, executeActivity)

Checklist

  1. Closes

  2. How was this tested:

Tests are included.

  1. Any docs updates needed? Will add a sample.

jssmith avatar Jan 11 '26 18:01 jssmith