-
Notifications
You must be signed in to change notification settings - Fork 93
feat: google-adk instrumentation. #1578
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
base: main
Are you sure you want to change the base?
Conversation
Thanks so much for contributing @daavoo ! If it's okay as I review I might push some fixes into your branch if it's low hanging fruit just to get a few more things over the line. I see some missing attributes like token-counts and just want to ship good first version for you! |
No problemo, go ahead. |
Thanks for this PR @daavoo. I think the current monkey-patching approach might run into problems when users create their own callbacks (as they're encouraged to do by the docs here). The main issue is that instance-level callbacks would override the instrumentor callbacks we added at the class level. For instance, if a user sets their callbacks to |
Yeah 😅 , I noticed that, I just put together something that worked in our context (any-agent) because we can choose to always call instrument manually after agent instantiation.
In case it helps, I also looked into:
|
Closing this, as commented the callback patch is not the right approach for openinference use case |
@daavoo if you don't mind, i think we can keep this PR open as we update the approach here given what we have so far |
Closes #1506
From
examples/tools.py
:LLM
(with function call output)TOOL
LLM
(with text output)