-
Notifications
You must be signed in to change notification settings - Fork 133
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
Feature request for the possibility of adding user_id to the trace while using Haystack<>Langfuse connector #916
Comments
Let me understand you correctly by using an example of Langfuse tracing @uvdepanda
What you would like to have is a payload, say a dict of keys/values that is passed to LangfuseConnector i.e. "tracer" component for each run invocation? So that run invocation becomes:
Is that correct? |
@vblagoje That is absolutely what I would like to have. And as of now, we are achieving by doing following: Current Solution: langfuse = Langfuse()
if context['user_id']:
trace_url = response["tracer"]["trace_url"]
trace_id = trace_url.split('/')[-1]
langfuse.trace(id=trace_id, session_id=context['user_id']) It works but from time to time, it does following: Problem: It would be cool if you could point out the right way of doing it. Thanks. |
Hey @uvdepanda @julian-risch I experimented a bit how we can solve this one easily and effectively. We can do this:
In the example above my pipeline run invocation looks like:
Users can pass whatever they need to identify this particular pipeline run and it will be properly identified in Langfuse traces. LMK your thoughts. |
@uvdepanda you can try the proposal at #1089 |
Hi there,
It seems like there is not a possibility to send out user_id to the trace while using Haystack<>Langfuse connector. It would be lovely if you could add this feature on your roadmap.
Thanks.
Best regards,
Yubraj
The text was updated successfully, but these errors were encountered: