feat: Add OpenTelemetry instrumentation for Google ADK#57
Closed
ralf0131 wants to merge 2 commits into
Closed
Conversation
- Introduced a new package for OpenTelemetry instrumentation specifically for Google Agent Development Kit (ADK). - Added `pyproject.toml` for package management and dependencies. - Implemented core observability features, including metrics and tracing, following OpenTelemetry GenAI semantic conventions. - Created example tools and a demo application to showcase usage. - Updated `.gitignore` to exclude Python bytecode and coverage files. - Added comprehensive tests for metrics and plugin integration to ensure compliance with OpenTelemetry standards. Change-Id: I1c2f2ae3502240bb090d26b1729b7a7f03fb3f02 Co-developed-by: Cursor <noreply@cursor.com>
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR introduces OpenTelemetry instrumentation for Google Agent Development Kit (ADK), implementing comprehensive observability features following OpenTelemetry GenAI semantic conventions. The implementation includes core instrumentation components, metrics collection, attribute extraction utilities, and comprehensive test coverage to ensure compliance with OpenTelemetry standards.
Key changes:
- New package structure for OpenTelemetry Google ADK instrumentation
- Implementation of observability plugin with metrics and tracing capabilities
- Comprehensive test suite validating semantic conventions compliance
- Example tools and demo application showcasing usage
Reviewed Changes
Copilot reviewed 17 out of 18 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| pyproject.toml | Package configuration defining dependencies and build settings |
| version.py | Version information for the package (0.1.0) |
| init.py (multiple) | Package initialization files and main instrumentor class |
| _plugin.py | Core observability plugin implementing ADK callbacks |
| _metrics.py | Metrics collector following OpenTelemetry GenAI conventions |
| _extractors.py | Attribute extractors for spans following semantic conventions |
| _utils.py | Utility functions for content processing and error handling |
| test_*.py | Test files validating metrics, plugin integration, and utilities |
| examples/*.py | Demo application and tools showcasing instrumentation usage |
| README.md | Documentation for installation, configuration, and usage |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
- Updated the Chinese translation for "roll_dice" from "投死子" to "投骰子". - Modified API key display message to indicate that it is set, rather than showing part of the key. Change-Id: I700458dbddc79742b93e0d8d556917d49f077f8d Co-developed-by: Cursor <noreply@cursor.com>
11 tasks
Copilot AI
added a commit
that referenced
this pull request
Nov 26, 2025
Co-authored-by: ralf0131 <4397305+ralf0131@users.noreply.github.com>
ralf0131
added a commit
that referenced
this pull request
Nov 26, 2025
Co-authored-by: ralf0131 <4397305+ralf0131@users.noreply.github.com>
Collaborator
Author
|
Close since main branch has been changed. |
ralf0131
added a commit
that referenced
this pull request
Dec 25, 2025
Co-authored-by: ralf0131 <4397305+ralf0131@users.noreply.github.com>
Cirilla-zmh
pushed a commit
that referenced
this pull request
Jan 29, 2026
Co-authored-by: ralf0131 <4397305+ralf0131@users.noreply.github.com>
Cirilla-zmh
pushed a commit
that referenced
this pull request
Feb 11, 2026
Co-authored-by: ralf0131 <4397305+ralf0131@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
pyproject.tomlfor package management and dependencies..gitignoreto exclude Python bytecode and coverage files.This resolves #35