openinference-instrumentation-google-adk
OpenInference Google ADK Instrumentation
What it is and what it does
This package wraps Google ADK agent execution to automatically capture traces compatible with OpenTelemetry. It instruments agent initialization, tool calls, LLM requests to Gemini, and response generation, emitting structured span data that can be sent to observability backends like Arize Phoenix or Arize AX for visualization and debugging.
The instrumentation is applied via a single `GoogleADKInstrumentor().instrument()` call that attaches to your tracer provider. Once active, it requires no changes to your agent code—traces flow automatically to any OpenTelemetry exporter you configure. It depends on opentelemetry-api, opentelemetry-instrumentation, and OpenInference semantic conventions to ensure traces follow standard LLM observability patterns.
Use it for:
- Debug multi-step agent workflows by viewing the full trace of tool calls, LLM prompts, and responses in Phoenix or Arize AX.
- Monitor production Gemini agents to detect latency bottlenecks, tool failures, or unexpected LLM behavior.
- Collect structured telemetry from agent sessions for post-hoc analysis, cost attribution, or quality audits.
- Integrate agent observability into existing OpenTelemetry infrastructure without rewriting agent code.
- Track session metadata and user interactions alongside agent execution for end-to-end observability.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Auto-instruments Google ADK applications to emit OpenTelemetry-compatible traces for observing agent behavior, tool calls, and LLM interactions.
Yes, if you are building or operating Google ADK agents with Gemini and need observability. The package is actively maintained, has no known vulnerabilities, low install friction, and integrates seamlessly with standard OpenTelemetry tooling. Install it alongside a tracing backend (Phoenix or Arize AX) to gain immediate visibility into agent behavior.
Install
openinference-instrumentation-google-adk on PyPI
pip
pip install openinference-instrumentation-google-adkuv
uv add openinference-instrumentation-google-adkpoetry
poetry add openinference-instrumentation-google-adkInstalling openinference-instrumentation-google-adk
Before you install
Low friction: pure Python wheel with seven stable runtime dependencies (opentelemetry-api, opentelemetry-instrumentation, wrapt, and OpenInference libraries). Active maintenance—released 2 days ago with last commit 2026-08-14—and supports Python 3.10 through 3.14.
License in practice
Apache-2.0 permissive license allows commercial and private use with minimal restrictions; suitable for most production and internal projects.
Quickstart
pip install openinference-instrumentation-google-adk
from openinference.instrumentation.google_adk import GoogleADKInstrumentor
from opentelemetry.sdk import trace as trace_sdk
tracer_provider = trace_sdk.TracerProvider()
GoogleADKInstrumentor().instrument(tracer_provider=tracer_provider)
Requires GOOGLE_API_KEY environment variable to authenticate with Gemini API; also requires a tracing backend (e.g., Arize Phoenix or OpenTelemetry collector) to receive and view traces.
Verify before relying
- Whether this package works with Google ADK versions other than those tested in CI/CD
- Performance overhead when instrumenting high-volume agent workloads
- Compatibility with custom Google ADK extensions or third-party agent frameworks
Package facts
| License | Apache-2.0 (permissive) |
| Python support | supports the current Python release (<3.15,>=3.10) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 7 — openinference-instrumentation, openinference-semantic-conventions, opentelemetry-api, opentelemetry-instrumentation, opentelemetry-semantic-conventions, typing-extensions, wrapt |
| Maintenance | actively maintained — 2 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 551,904/month — #6,045 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: openinference_instrumentation_google_adk-0.1.20-py3-none-any.whl
Tags
More Monitoring packages
Wraps any iterable to display a real-time…
copyleft · top 100 on PyPI
opentelemetry-semantic-conventionsProvides generated Python code for…
permissive · top 100 on PyPI
opentelemetry-sdkProvides the reference implementation of the…
permissive · top 100 on PyPI
opentelemetry-apiProvides the abstract API and interfaces for…
permissive · top 100 on PyPI
opentelemetry-exporter-otlp-proto-httpExports OpenTelemetry observability data to an…
permissive · top 1,000 on PyPI
opentelemetry-instrumentationProvides automatic instrumentation commands and…
permissive · top 1,000 on PyPI
openinference-instrumentation-agnoAuto-instruments Agno Agent applications to…
permissive · top 15,000 on PyPI
openinference-instrumentation-claude-agent-sdkAuto-instruments Claude Agent SDK calls to emit…
permissive · top 15,000 on PyPI
openinference-instrumentation-google-genaiAutomatically instruments Google GenAI SDK…
permissive · top 15,000 on PyPI
openinference-instrumentation-openaiAuto-instruments OpenAI Python SDK calls to…
permissive · top 5,000 on PyPI
openinference-instrumentation-langchainAuto-instruments LangChain applications to…
permissive · top 5,000 on PyPI
openinference-instrumentation-openai-agentsAuto-instruments OpenAI Agents SDK to emit…
permissive · top 5,000 on PyPI
openinference-instrumentation-pydantic-aiAuto-instruments PydanticAI agents to emit…
permissive · top 15,000 on PyPI
openinference-instrumentation-mcpAuto-instruments MCP tool calls to propagate…
permissive · top 15,000 on PyPI
ag_ui_adkBridges Google ADK agents to the AG-UI…
permissive · top 15,000 on PyPI
openinference-instrumentation-portkeyAutomatically instruments Portkey AI API calls…
permissive · top 15,000 on PyPI