-
Notifications
You must be signed in to change notification settings - Fork 675
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
Can't see the workflow trace #1994
Comments
Hey, @eric-easyhealth! I'm here to help you with any bugs, questions, or contributions you have. Let's squash those bugs together! I found a similar unsolved discussion where a user faced a similar issue with workflow trace visibility while using Haystack2 with Traceloop 0.26.4. You can check it out here [1]. To enable workflow tracking in Traceloop 0.26.4 when using a pipeline in a Python class with the
By following these steps, you should be able to enable workflow tracking for your pipeline using Traceloop [2][3][4]. |
this doesn't resolve my questions, this workflow should be automatically identfied according to the documentation if i used haystack. |
To enable automatic workflow tracking in Traceloop 0.26.4 when using Haystack2, you do not need to add any annotations to your code. Traceloop will automatically handle the annotations for you if you are using an LLM framework like Haystack. Here's how you can initialize Traceloop: from traceloop.sdk import Traceloop
Traceloop.init(app_name="app_name", api_key="apikey") If you’re running this locally and want to see the traces immediately, you can disable batch sending: Traceloop.init(app_name="app_name", api_key="apikey", disable_batch=True) This setup should enable automatic workflow tracking in Traceloop when using Haystack2 [1]. |
Sorry about the bot @eric-easyhealth, we're trying something new 😅 |
Discussed in #1804
Originally posted by eric-easyhealth August 6, 2024
I'm using Haystack2 with latest trackloop 0.26.4, followed the offical guidance to init the traceloop by following code:
it works perfect and shown me the openai track as following, but how can i enable the workflow track like what is suggested in the quick start document?
PS: i'm using a pipeline in a python class, dummy code as below:
The text was updated successfully, but these errors were encountered: