Agents SDK v0.18.3 - Configurable Task and Turn Tracing for Better Observability
OpenAI Agents SDK v0.18.3 makes task- and turn-level tracing spans configurable, giving teams more control over agent observability. This enables trade-offs between detailed telemetry for debugging and the performance, cost, and privacy considerations that come with verbose tracing.
The v0.18.3 release of the OpenAI Agents SDK introduces configuration controls for task and turn tracing spans. In practice, teams can now enable, disable, or tune the granularity of spans that capture agent tasks and conversational turns. This is designed to integrate more flexibly with observability stacks and reduce the default telemetry footprint when detailed traces aren't required.
From an engineering perspective the change addresses two common needs: (1) the desire to capture rich, contextual traces for debugging complex agent behaviors during development, and (2) the need to limit trace volume and associated costs in production. Making spans configurable allows teams to sample selectively, apply rate limits, or switch to lower-overhead logging while maintaining the ability to ramp up visibility when investigating issues. It also simplifies compliance with data minimization requirements by allowing organizations to reduce the amount of conversational content exported to tracing backends.
For business leaders, this capability translates into more predictable observability costs and better risk control. Observability is essential to measure agent correctness, drift, and operational health, but unmanaged tracing can generate high storage and processing bills and can surface sensitive data unintentionally. Configurable spans give architects a lever to balance these trade-offs and ensure telemetry aligns with governance policies.
Practical recommendations: (1) Define a tracing policy that specifies when full task/turn tracing is enabled (e.g., staging, incident windows), (2) integrate the SDK's tracing controls with your APM/OpenTelemetry configuration for consistent sampling and retention, (3) anonymize or redact sensitive fields before exporting traces, and (4) monitor observability cost and performance impact to refine sampling and span granularity over time.
Original Source
OpenAI Agents SDK (GitHub)
