Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

feat: make task and turn tracing spans configurable - #3834

#3834
Merged
seratch merged 1 commit into
mainopenai/openai-agents-python:mainfrom
feat/configurable-task-turn-spansopenai/openai-agents-python:feat/configurable-task-turn-spansCopy head branch name to clipboard
Jul 14, 2026
Merged

feat: make task and turn tracing spans configurable#3834
seratch merged 1 commit into
mainopenai/openai-agents-python:mainfrom
feat/configurable-task-turn-spansopenai/openai-agents-python:feat/configurable-task-turn-spansCopy head branch name to clipboard

Conversation

@seratch

@seratch seratch commented Jul 14, 2026

Copy link
Copy Markdown
Member

This pull request adds a per-run tracing option for disabling automatically generated task and turn spans.

include_task_and_turn_spans defaults to True to preserve the existing trace hierarchy. Setting it to False produces a more compact hierarchy while retaining agent, generation, function, guardrail, handoff, and manually created spans. The option applies consistently to streaming and non-streaming runs and does not change persisted RunState data.

@seratch seratch added this to the 0.18.x milestone Jul 14, 2026
@seratch
seratch merged commit 7369b73 into main Jul 14, 2026
9 checks passed
@seratch
seratch deleted the feat/configurable-task-turn-spans branch July 14, 2026 20:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Morty Proxy This is a proxified and sanitized view of the page, visit original site.