Skip to content

feat: Add OpenTelemetry instrumentation for Google ADK#57

Closed
ralf0131 wants to merge 2 commits into
legacy/archived_main_20251113from
feature/google-adk
Closed

feat: Add OpenTelemetry instrumentation for Google ADK#57
ralf0131 wants to merge 2 commits into
legacy/archived_main_20251113from
feature/google-adk

Conversation

@ralf0131

@ralf0131 ralf0131 commented Oct 23, 2025

Copy link
Copy Markdown
Collaborator
  • 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.

This resolves #35

- 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>
@ralf0131
ralf0131 requested a review from Copilot October 23, 2025 10:28

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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.

Comment thread instrumentation-genai/opentelemetry-instrumentation-google-adk/examples/main.py Outdated
Comment thread instrumentation-genai/opentelemetry-instrumentation-google-adk/examples/main.py Outdated
Comment thread instrumentation-genai/opentelemetry-instrumentation-google-adk/examples/main.py Dismissed
- 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>
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>
@ralf0131

Copy link
Copy Markdown
Collaborator Author

Close since main branch has been changed.

@ralf0131 ralf0131 closed this Nov 26, 2025
ralf0131 added a commit that referenced this pull request Dec 25, 2025
Co-authored-by: ralf0131 <4397305+ralf0131@users.noreply.github.com>
@ralf0131
ralf0131 deleted the feature/google-adk branch January 7, 2026 02:22
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>
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.

[feat] Add support for Google ADK

3 participants