[OPEN-7119] Add support for Google ADK #544
Merged
+1,228
−1
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Pull Request
Summary
This PR adds comprehensive tracing support for Google Agent Development Kit (ADK), enabling Openlayer users to trace agent execution, LLM calls, tool calls, and multi-agent workflows with proper hierarchy and metadata extraction.
Closes
OPEN-7119Changes
Core Integration: Added
google_adk_tracer.pywith support for:Smart Agent Nesting: Implemented context variable system to ensure sub-agents appear as siblings of LLM calls (not nested under tool calls), providing cleaner trace hierarchies
NoOp Tracer: Replaced ADK's built-in OpenTelemetry tracer to prevent duplicate spans
Examples & Documentation:
google_adk_tracing.ipynb) with multi-agent workflow exampleTesting: Added 16 comprehensive unit tests covering:
Export: Added
trace_google_adkandunpatch_google_adkto__init__.pyDocumentation: Updated README.md with Google ADK tracing section
Context
Google Agent Development Kit (ADK) is Google's framework for building multi-agent systems with Gemini models. This integration enables Openlayer customers using ADK to:
Key Technical Decisions:
wraptfor method patching to ensure clean instrumentationparent_stepparameter for proper hierarchyTesting