Skip to content

feat: Add OpenTelemetry instrumentation for Google ADK (rebased from PR #57)#69

Closed
ralf0131 with Copilot wants to merge 3 commits into
mainfrom
copilot/rebase-onto-latest-main
Closed

feat: Add OpenTelemetry instrumentation for Google ADK (rebased from PR #57)#69
ralf0131 with Copilot wants to merge 3 commits into
mainfrom
copilot/rebase-onto-latest-main

Conversation

Copilot AI commented Nov 26, 2025

Copy link
Copy Markdown
Contributor

Description

Rebases PR #57 changes onto the latest main branch after the main branch was replaced. The original PR targeted legacy/archived_main_20251113 which is now outdated.

Adds opentelemetry-instrumentation-google-adk package providing OpenTelemetry instrumentation for Google Agent Development Kit (ADK) applications following GenAI semantic conventions.

Key components:

  • GoogleAdkInstrumentor - Auto-injects observability plugin into ADK Runners
  • Span creation for agent invocations, LLM calls, and tool executions
  • Standard GenAI metrics: gen_ai.client.operation.duration and gen_ai.client.token.usage
  • Attribute extraction following OTel GenAI conventions (gen_ai.operation.name, gen_ai.provider.name, etc.)
from opentelemetry.instrumentation.google_adk import GoogleAdkInstrumentor

GoogleAdkInstrumentor().instrument(
    tracer_provider=your_tracer_provider,
    meter_provider=your_meter_provider
)

Fixes #35

Type of change

  • New feature (non-breaking change which adds functionality)
  • This change requires a documentation update

How Has This Been Tested?

  • Unit tests for utility functions (test_utils.py)
  • Integration tests for metrics with InMemoryMetricReader (test_metrics.py)
  • Integration tests for spans with InMemorySpanExporter (test_plugin_integration.py)
  • CodeQL security scan - no alerts

Does This PR Require a Core Repo Change?

  • No.

Checklist:

  • Followed the style guidelines of this project
  • Changelogs have been updated
  • Unit tests have been added
  • Documentation has been updated
Original prompt

#57 我现在有一个 PR 要合并,但是 main 分支被替换换掉了,现在需要重新向 最新的 main 分支提交一个 PR,请你帮忙完成这个任务,可能会有冲突,如果有冲突的要解决下


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

@CLAassistant

Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

Copilot AI and others added 2 commits November 26, 2025 04:10
Co-authored-by: ralf0131 <4397305+ralf0131@users.noreply.github.com>
Co-authored-by: ralf0131 <4397305+ralf0131@users.noreply.github.com>
Copilot AI changed the title [WIP] Rebase PR to latest main branch feat: Add OpenTelemetry instrumentation for Google ADK (rebased from PR #57) Nov 26, 2025
Copilot AI requested a review from ralf0131 November 26, 2025 04:16
@ralf0131 ralf0131 closed this Nov 26, 2025
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