{"categories":[{"label":"Monitoring","url":"https://skillfed.io/packages/category/system-monitoring/2"}],"enrichment":{"capability":"Adds OpenTelemetry instrumentation to the Google GenAI SDK, automatically emitting trace spans, events, and metrics for GenAI operations like generate_content, embed_content, and interactions.create.","skillfed_tags":["observability","genai","instrumentation"],"use_cases":["Monitor GenAI API calls in production by emitting traces to your OpenTelemetry backend (e.g., Jaeger, Datadog, New Relic).","Debug GenAI application behavior by capturing prompts, responses, and tool calls as span events and logs.","Aggregate metrics on GenAI usage (request counts, latencies, token consumption) for cost and performance analysis.","Correlate GenAI operations with other application traces to understand end-to-end request flow.","Audit GenAI interactions by recording message content and configuration parameters when enabled."],"what_it_does":"This package wraps the Google GenAI SDK with OpenTelemetry instrumentation to automatically capture observability data from GenAI operations. It emits trace spans for calls like generate_content and embed_content, records prompts and responses as events/logs, and aggregates metrics describing GenAI activity\u2014all following OpenTelemetry's GenAI semantic conventions. The instrumentation works by patching the SDK's client methods, so once you call instrument() it traces all subsequent GenAI operations without requiring changes to your application code.\n\nThe package is still experimental and has known defects documented in TODOS.md that block full stability. It supports Python 3.10 through 3.14 and integrates with the standard OpenTelemetry ecosystem (opentelemetry-api, opentelemetry-instrumentation, and related packages). You can optionally capture message content and GenerateContentConfig parameters via environment variables, and uninstrument clients when needed.","worth_installing":"Yes, with conditions. Install if you are already using OpenTelemetry in your application and need observability into Google GenAI SDK calls. The low install friction and permissive license make it a straightforward addition. However, be aware it is experimental with known blockers to stability\u2014review TODOS.md before production use and expect potential API or behavior changes in future releases."},"id":"opentelemetry-instrumentation-google-genai","links":{"html":"https://skillfed.io/packages/opentelemetry-instrumentation-google-genai","md":"https://skillfed.io/packages/opentelemetry-instrumentation-google-genai.md","pypi":"https://pypi.org/project/opentelemetry-instrumentation-google-genai/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2026-07-13","license_spdx":"Apache-2.0","license_treatment":"permissive","name":"opentelemetry-instrumentation-google-genai","python_support":"supports_current","summary":"OpenTelemetry"},"popularity":{"monthly_downloads":1678224,"position":3661,"tier":"top_5000"},"security":{"n_vulnerabilities":0},"version":"1.0b1"}
