Skip to content

fix(tracing): mark non-streaming agent span failures - #4191

Merged
seratch merged 1 commit into
mainfrom
fix/non-streaming-agent-span-error
Aug 5, 2026
Merged

seratch merged 1 commit into
mainfrom
fix/non-streaming-agent-span-error

Conversation

@seratch

@seratch seratch commented Aug 5, 2026

Copy link
Copy Markdown
Member

This pull request fixes missing generic agent-span errors in non-streaming runs and brings Runner.run() and Runner.run_sync() into parity with Runner.run_streamed().

It centralizes generic error attachment in one run-internal helper, preserves existing specific errors and cancellation behavior, honors sensitive-data redaction without unnecessary exception stringification, and contains formatter or custom span failures so tracing cannot replace the original application exception.

This pull request supersedes #4073 and carries forward the original contribution with co-authored credit. This pull request resolves #4070.

@seratch seratch added this to the 0.19.x milestone Aug 5, 2026
@seratch
seratch merged commit 107260f into main Aug 5, 2026
9 checks passed
@seratch
seratch deleted the fix/non-streaming-agent-span-error branch August 5, 2026 01:47
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.

Non-streaming runs never attach a generic run error to the agent span

1 participant