Skip to content

fix(adk): avoid duplicate sync runner invocation spans#252

Open
Abhijeet Prasad (AbhiPrasad) wants to merge 1 commit intomainfrom
abhi-fix-adk-sync-runner-spans
Open

fix(adk): avoid duplicate sync runner invocation spans#252
Abhijeet Prasad (AbhiPrasad) wants to merge 1 commit intomainfrom
abhi-fix-adk-sync-runner-spans

Conversation

@AbhiPrasad
Copy link
Copy Markdown
Member

Trace only Runner.run_async because supported ADK versions route the sync Runner.run API through the async implementation. Patching both surfaces created duplicate invocation spans for sync callers.

Add a regression test and cassette coverage to verify Runner.run emits a single invocation span with the expected child agent span structure.

fixes https://linear.app/braintrustdata/issue/BT-4720/adk-runnerrun-produces-duplicate-nested-invocation-spans

Trace only Runner.run_async because supported ADK versions route the sync
Runner.run API through the async implementation. Patching both surfaces
created duplicate invocation spans for sync callers.

Add a regression test and cassette coverage to verify Runner.run emits a
single invocation span with the expected child agent span structure.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant