Skip to content

Conversation

@Dwij1704
Copy link
Member

📥 Pull Request

📘 Description
Closes
Implement Google ADK Instrumentation for AgentOps

  • Introduced Google ADK instrumentation module to capture agent execution, LLM calls, and tool interactions.
  • Added GoogleADKInstrumentor class to manage instrumentation, including disabling built-in telemetry and creating AgentOps spans.
  • Implemented patching functions to replace ADK's telemetry with no-op spans, ensuring no duplicate spans are created.

🧪 Testing
https://gist.github.com/Dwij1704/d7e21439d53ced4c2cbdd94f70bd7a99

@codecov
Copy link

codecov bot commented May 27, 2025

Codecov Report

Attention: Patch coverage is 7.07457% with 486 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
agentops/instrumentation/google_adk/patch.py 0.00% 425 Missing ⚠️
agentops/instrumentation/__init__.py 57.81% 27 Missing ⚠️
...gentops/instrumentation/google_adk/instrumentor.py 0.00% 24 Missing ⚠️
agentops/instrumentation/google_adk/__init__.py 0.00% 10 Missing ⚠️

📢 Thoughts on this report? Let us know!

Dwij1704 added 2 commits May 27, 2025 23:35
… adding a fallback to typing_extensions. This ensures broader compatibility across Python versions.
@Dwij1704 Dwij1704 requested review from bboynton97 and dot-agi May 27, 2025 18:12
Dwij1704 and others added 8 commits May 27, 2025 23:47
…f 'google-genai' for improved package management.
…le messages. Updated message processing to include proper indexing and role normalization for contents, enhancing clarity and consistency in attribute assignment.
…nstants for span attributes. This change enhances code clarity and maintainability by replacing string literals with defined constants for agent, LLM, and tool attributes.
… creation for agent, LLM, and tool contexts. This improves clarity in span categorization and aligns with the existing attribute assignment structure.
…pan creation for agent, LLM, and tool contexts. This change simplifies span initialization while maintaining clarity in span categorization through attribute assignment.
Copy link
Member

@dot-agi dot-agi left a comment

Choose a reason for hiding this comment

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

We rolling today.

@dot-agi dot-agi merged commit bd397dd into main May 27, 2025
9 of 10 checks passed
@dot-agi dot-agi deleted the google-adk-enhanced-support branch May 27, 2025 21:46
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.

3 participants