Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Http Logs/Traces #195

Open
lambdakris opened this issue Jan 24, 2025 · 0 comments
Open

Http Logs/Traces #195

lambdakris opened this issue Jan 24, 2025 · 0 comments
Labels
priority: p3 Desirable enhancement or fix. May not be included in next release. type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design.

Comments

@lambdakris
Copy link

Thanks for stopping by to let us know something could be better!

PLEASE READ: If you have a support contract with Google, please create an issue in the support console instead of filing on GitHub. This will ensure a timely response.

Is your feature request related to a problem? Please describe.
I am having http problems when using the python-genai library to make LLM calls due to company restrictions.

Describe the solution you'd like
In order to help resolve these problems, I need to capture more info (logs/traces) for the failed requests. However, at the moment, the client just throws an exception and I have not found a way to log any request/response info other than the basic METHOD URL STATUS_CODE info that is logged when the requests logger is set to DEBUG.

Describe alternatives you've considered
I've tried various tracing tools but these do not work since the requests client that the Google Client wraps is not instrumented.

Additional context
Add any other context or screenshots about the feature request here.

@lambdakris lambdakris added priority: p3 Desirable enhancement or fix. May not be included in next release. type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design. labels Jan 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority: p3 Desirable enhancement or fix. May not be included in next release. type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design.
Projects
None yet
Development

No branches or pull requests

1 participant