Skip to content

google_genai and pydantic init_logger no longer unconditionally called during auto_instrument#169

Open
ViaDézo1er / cedric (viadezo1er) wants to merge 1 commit intomainfrom
cedric/168-google_genai-init_logger-unconditionally-called-during-auto_instrument
Open

google_genai and pydantic init_logger no longer unconditionally called during auto_instrument#169
ViaDézo1er / cedric (viadezo1er) wants to merge 1 commit intomainfrom
cedric/168-google_genai-init_logger-unconditionally-called-during-auto_instrument

Conversation

@viadezo1er
Copy link
Copy Markdown
Contributor

Fix #168

-    if span == NOOP_SPAN:
+    if span == NOOP_SPAN and current_logger() is None:

5 times (plus the import).

init_logger was called when there was no active span without checking for a logger.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

google_genai and pydantic init_logger unconditionally called during auto_instrument

1 participant