Skip to content

Commit 8fefb87

Browse files
authored
fix(google-genai): update logic for deciding whether to use awrap or wrap in the Google Generative AI Instrumentation (#3329)
1 parent 27aa69c commit 8fefb87

File tree

1 file changed

+1
-1
lines changed
  • packages/opentelemetry-instrumentation-google-generativeai/opentelemetry/instrumentation/google_generativeai

1 file changed

+1
-1
lines changed

packages/opentelemetry-instrumentation-google-generativeai/opentelemetry/instrumentation/google_generativeai/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ def _instrument(self, **kwargs):
281281
f"{wrap_object}.{wrap_method}",
282282
(
283283
_awrap(tracer, event_logger, wrapped_method)
284-
if wrap_method == "generate_content_async"
284+
if wrap_object == "AsyncModels"
285285
else _wrap(tracer, event_logger, wrapped_method)
286286
),
287287
)

0 commit comments

Comments
 (0)