-
Notifications
You must be signed in to change notification settings - Fork 75
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
Tracing generator functions #3424
Comments
Thanks for reporting, we have a corresponding issue in our internal tracker, WB-19801. |
Thanks! Any idea when it might be addressed? I'm evaluating different observability tools, and while this isn't a deal breaker or anything it is rather annoying given our usage. |
I can tell you that this hasn't been selected for development in the next few weeks, but we can't yet commit to a time frame for when it might be. I can also say that a number of users have mentioned it, which does help with its prioritization. |
@danem Hey! I'm also in the same boat as you here — the streaming thing is kind of annoying. I'm wondering if you had any super positive experiences with other LLM observability tools relative to Weave? |
@jamie-rasmussen - I found this recent PR from Data Dog's python client in which they addressed issues they had decorating sync and async generator functions and thought it might be helpful to the weave team re: fixing this bug. it looks like the function they're using to determine if a function returns a generator is |
Weave Version: 0.51.28
Python version: 3.12.8
I've found that functions returning a generator aren't properly traced.
For example:
Results in two separate traces:
While this works properly:
This is relevant for tracing functions that stream results back to the user.
The text was updated successfully, but these errors were encountered: