You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
New Instrumentation Module (instrumentation/gemini.py): Added a patching mechanism for both synchronous and asynchronous Interactions.create methods.
Support for Multiple SDK Layouts: The patch intelligently checks for both standard Interactions (SDK <2.x) and GeminiNextGenInteractions (SDK >=2.x) to ensure broader compatibility.
Automatically records span attributes such as llm.vendor, llm.model, llm.interaction_id, and llm.response.status.
Reads provider total_tokens/total_cached_tokens/total_tool_use_tokens directly instead of synthesizing input+output