openinference-instrumentation-google-genai
OpenInference Google GenAI Instrumentation
Decision gist · record as of 2026-08-14
Yes. The package is actively maintained, has low install friction, carries a permissive license, and solves a concrete observability gap for Google GenAI users. It integrates cleanly into standard OpenTelemetry pipelines and is marked Production/Stable. The incomplete tool definition capture is a minor limitation unlikely to block most use cases.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.10 or later; OpenTelemetry SDK and exporter packages needed for full tracing pipeline.
- Low friction install with a pure-Python wheel and six straightforward dependencies.
- The package is actively maintained with a release within the last week and marked Production/Stable.
License · maintenance · safety
Apache-2.0 (permissive) — Apache-2.0 permissive license allows use in commercial and private projects with minimal restrictions; attribution required.
last release 2026-08-07 (7 days) · last repo commit 2026-08-14 · 1,147 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 652,673 downloads/mo, #5,543 on PyPI
Alternatives
Verify before relying
pip install openinference-instrumentation-google-genai
from openinference.instrumentation.google_genai import GoogleGenAIInstrumentor
from opentelemetry.sdk.trace import TracerProvider
tracer_provider = TracerProvider()
GoogleGenAIInstrumentor().instrument(tracer_provider=tracer_provider)- Whether tool definition capture (marked incomplete in progress) affects production readiness for your use case.
- Performance overhead of instrumentation on high-volume GenAI calls.
- Compatibility with specific Google GenAI SDK versions beyond the stated Python version support.
What it is and what it does
This package wraps Google GenAI SDK calls to emit structured traces compatible with OpenTelemetry, enabling you to observe and debug generative AI workloads. It hooks into the SDK's generate_content method and captures invocation details and message parsing, sending them to any OpenTelemetry collector—such as Arize Phoenix or Arize AX—for visualization and analysis.
The instrumentation is designed to integrate seamlessly into existing OpenTelemetry pipelines. You configure a TracerProvider with a span exporter, call the GoogleGenAIInstrumentor's instrument method, and all subsequent GenAI calls are automatically traced. The package is marked Production/Stable and actively maintained, though tool definition capture remains a work-in-progress feature.
Use it for
- Monitor and debug individual GenAI API calls in production applications to understand latency and failure modes.
- Collect structured traces of multi-turn conversations to analyze model behavior and response quality.
- Integrate GenAI observability into existing OpenTelemetry-based monitoring stacks without custom instrumentation.
- Track session metadata and custom spans across GenAI calls for end-to-end request tracing.
- Audit GenAI usage patterns and costs by analyzing invocation traces in a centralized collector.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
The package is actively maintained, has low install friction, carries a permissive license, and solves a concrete observability gap for Google GenAI users. It integrates cleanly into standard OpenTelemetry pipelines and is marked Production/Stable. The incomplete tool definition capture is a minor limitation unlikely to block most use cases.
Install
openinference-instrumentation-google-genai on PyPI
Before you install
Low friction install with a pure-Python wheel and six straightforward dependencies. The package is actively maintained with a release within the last week and marked Production/Stable.
Requires Python 3.10 or later; OpenTelemetry SDK and exporter packages needed for full tracing pipeline.
License in practice
Apache-2.0 permissive license allows use in commercial and private projects with minimal restrictions; attribution required.
Quickstart
pip install openinference-instrumentation-google-genai
from openinference.instrumentation.google_genai import GoogleGenAIInstrumentor
from opentelemetry.sdk.trace import TracerProvider
tracer_provider = TracerProvider()
GoogleGenAIInstrumentor().instrument(tracer_provider=tracer_provider)
Verify before relying
- Whether tool definition capture (marked incomplete in progress) affects production readiness for your use case.
- Performance overhead of instrumentation on high-volume GenAI calls.
- Compatibility with specific Google GenAI SDK versions beyond the stated Python version support.
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 | 6 packagesopeninference-instrumentationopeninference-semantic-conventionsopentelemetry-apiopentelemetry-instrumentationopentelemetry-semantic-conventionswrapt |
| Maintenance | Actively maintained 7 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 652,673 / month, #5,543 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableIntended Audience :: DevelopersLicense :: OSI Approved :: Apache Software LicenseProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14 |
Evidence: openinference_instrumentation_google_genai-1.4.0-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “google genai tracing”
- openinference-instrumentation-google-genaiAutomatically instruments Google GenAI SDK calls to emit…
- opentelemetry-instrumentation-google-genaiAdds OpenTelemetry instrumentation to the Google GenAI SDK,…
- loongsuite-util-genaiExtends OpenTelemetry's GenAI semantic conventions to capture…
Give your agent the search over MCP, or paste the wish link into any chat.
More Monitoring packages
Wraps any iterable to display a real-time progress bar in the terminal or Jupyter notebook, showing iteration count, elapsed time, and estimated time remaining.
Provides generated Python code for OpenTelemetry semantic conventions, enabling standardized attribute naming and constant definitions for instrumentation and telemetry collection.
Install it if you are using OpenTelemetry and want to follow semantic conventions correctly.
Provides the reference implementation of the OpenTelemetry API for collecting and exporting traces, metrics, and logs from Python applications.
Provides the abstract API and interfaces for OpenTelemetry instrumentation in Python, defining how to emit traces, metrics, and logs without tying code to a specific SDK implementation.
Exports OpenTelemetry observability data to an OpenTelemetry Collector using Protobuf-encoded messages over HTTP.
Install it if you are using OpenTelemetry in Python and need to send data to a Collector over HTTP.
Provides automatic instrumentation commands and programmatic APIs to inject distributed tracing into Python applications without code changes, detecting and instrumenting packages used by your program.
Install it if you need distributed tracing without code changes and have compatible instrumented packages in your environment.
See also openinference-instrumentation-crewai · openinference-instrumentation-dspy · openinference-instrumentation-litellm · openinference-instrumentation-openai · openinference-instrumentation-agno · openinference-instrumentation-langchain · openinference-instrumentation-pydantic-ai · openinference-instrumentation-claude-agent-sdk · openinference-instrumentation-haystack · openinference-instrumentation-google-adk