Skip to content

feat(google_genai): trace interactions api methods#210

Open
Abhijeet Prasad (AbhiPrasad) wants to merge 1 commit intomainfrom
abhi-feat-198-google-genai-interactions
Open

feat(google_genai): trace interactions api methods#210
Abhijeet Prasad (AbhiPrasad) wants to merge 1 commit intomainfrom
abhi-feat-198-google-genai-interactions

Conversation

@AbhiPrasad
Copy link
Copy Markdown
Member

Instrument the Google GenAI Interactions API for sync and async create, get, cancel, delete, and streaming calls. The new tracing normalizes interaction inputs and outputs, records usage and timing, tracks previous_interaction_id, and emits nested tool spans for interaction tool calls.

Replace the earlier fake-based interaction coverage with VCR-backed integration tests and recorded cassettes so the span shape is validated against real SDK behavior.

Closes #198

Instrument the Google GenAI Interactions API for sync and async create,
get, cancel, delete, and streaming calls. The new tracing
normalizes interaction inputs and outputs, records usage and timing,
tracks previous_interaction_id, and emits nested tool spans for
interaction tool calls.

Replace the earlier fake-based interaction coverage with VCR-backed
integration tests and recorded cassettes so the span shape is
validated against real SDK behavior.

Closes #198
@starfolkai
Copy link
Copy Markdown

starfolkai bot commented Apr 7, 2026

Drop into this review session: sfk devbox connect pr-210-braintrust-sdk-python-1922 --attach

No serious bugs or issues found 🎉

}
)

with start_span(
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

might be a dumb question but I am wondering whether we are properly nesting things inside the tool calls within the tool span here? Also are we properly recording start/end timestamps with this?

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.

[BOT ISSUE] Google GenAI: Interactions API not instrumented

2 participants