Skip to content

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

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

google_genai and pydantic init_logger no longer unconditionally called during auto_instrument#169
Cedric / ViaDézo1er (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.

@AbhiPrasad
Copy link
Copy Markdown
Member

resolved by #182

@AbhiPrasad Abhijeet Prasad (AbhiPrasad) deleted the cedric/168-google_genai-init_logger-unconditionally-called-during-auto_instrument branch March 31, 2026 20:07
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

2 participants