$npx skillfedfor your agent

openinference-instrumentation-google-genai

OpenInference Google GenAI Instrumentation

Worth itPyPI MonitoringReleased Aug 2026652.7K downloads / moApache-2.0Pure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — openinference_instrumentation_google_genai-1.4.0-py3-none-any.whl
v1.4.0 · released 2026-08-07 · Python <3.15,>=3.10 · 6 runtime deps: openinference-instrumentation, openinference-semantic-conventions, opentelemetry-api, opentelemetry-instrumentation, opentelemetry-semantic-conventions, wrapt

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

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.
Same gist for agents: .md · .json

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.

Worth 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

LicenseApache-2.0 permissive
Python supportSupports the current Python release <3.15,>=3.10
Install frictionLow. Pure-Python wheel
Runtime dependencies
6 packages
openinference-instrumentationopeninference-semantic-conventionsopentelemetry-apiopentelemetry-instrumentationopentelemetry-semantic-conventionswrapt
MaintenanceActively maintained 7 days since the last release
Last repo commit
First released
Downloads652,673 / month, #5,543 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone 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

Capabilities
opentelemetry instrumentation genaigoogle genai tracingllm observability tracesgenai sdk monitoringopeninference googleai model call tracinggenai debugging
Topics
observabilitygenai-instrumentationopentelemetry

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”

Give your agent the search over MCP, or paste the wish link into any chat.

More Monitoring packages

tqdm Worth it
PyPI · Libraries · released Jul 2026

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.

copyleftpure Python · 3.8+
648.6Mdownloads / mo
opentelemetry-semantic-conventions Worth it
PyPI · Monitoring · released Jul 2026

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.

Apache-2.0pure Python · 3.10+
542.9Mdownloads / mo
opentelemetry-sdk Worth it
PyPI · Monitoring · released Jul 2026

Provides the reference implementation of the OpenTelemetry API for collecting and exporting traces, metrics, and logs from Python applications.

Apache-2.0pure Python · 3.10+
521.8Mdownloads / mo
opentelemetry-api With conditions
PyPI · Monitoring · released Jul 2026

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.

Apache-2.0pure Python · 3.10+
463.8Mdownloads / mo
opentelemetry-exporter-otlp-proto-http Worth it
PyPI · Monitoring · released Jul 2026

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.

Apache-2.0pure Python · 3.10+
409.9Mdownloads / mo
opentelemetry-instrumentation Worth it
PyPI · Monitoring · released Jul 2026

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.

Apache-2.0pure Python · 3.10+
393.5Mdownloads / mo

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

Further reading