You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
By using another implementation of Ecologits than Google's in my project, because one of my dependencies from another library is ‘google-auth’, my environment contains a ‘google’ module but without the generative-ai aspect. It tries to initialise the Google instrumentor, but (rightly) fails. I did a few tests, using the specific generative Google module (google-generativeai) modifying this :
def init_google_instrumentor() -> None:
if importlib.util.find_spec("google") is not None:
from ecologits.tracers.google_tracer import GoogleInstrumentor
to:
def init_google_instrumentor() -> None:
if importlib.util.find_spec("google-generativeai") is not None:
from ecologits.tracers.google_tracer import GoogleInstrumentor
This fixes the bug, but it may need to be tested to ensure that it doesn't affect the correct functioning of the Google tracer.
The text was updated successfully, but these errors were encountered:
By using another implementation of Ecologits than Google's in my project, because one of my dependencies from another library is ‘google-auth’, my environment contains a ‘google’ module but without the generative-ai aspect. It tries to initialise the Google instrumentor, but (rightly) fails. I did a few tests, using the specific generative Google module (google-generativeai) modifying this :
to:
This fixes the bug, but it may need to be tested to ensure that it doesn't affect the correct functioning of the Google tracer.
The text was updated successfully, but these errors were encountered: