From f8a7cc62d01922272e80fabf97193bb796651c40 Mon Sep 17 00:00:00 2001 From: Nir Gazit Date: Sat, 9 Nov 2024 21:11:25 +0100 Subject: [PATCH] fix(sdk): gemini instrumentation was never installed due to package name error --- packages/traceloop-sdk/traceloop/sdk/tracing/tracing.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/traceloop-sdk/traceloop/sdk/tracing/tracing.py b/packages/traceloop-sdk/traceloop/sdk/tracing/tracing.py index 83f630603..79fa5d864 100644 --- a/packages/traceloop-sdk/traceloop/sdk/tracing/tracing.py +++ b/packages/traceloop-sdk/traceloop/sdk/tracing/tracing.py @@ -584,7 +584,7 @@ def init_chroma_instrumentor(): def init_google_generativeai_instrumentor(): try: - if is_package_installed("google.generativeai"): + if is_package_installed("google-generativeai"): Telemetry().capture("instrumentation:gemini:init") from opentelemetry.instrumentation.google_generativeai import ( GoogleGenerativeAiInstrumentor,