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

Langfuse Integration: expose the trace_id in the response #1263

Open
marcklingen opened this issue Dec 24, 2024 · 0 comments
Open

Langfuse Integration: expose the trace_id in the response #1263

marcklingen opened this issue Dec 24, 2024 · 0 comments
Labels
feature request Ideas to improve an integration

Comments

@marcklingen
Copy link
Contributor

Is your feature request related to a problem? Please describe.

The trace_id is helpful to add evaluation metrics to the haystack trace within Langfuse. Currently, it needs to be parsed from the trace_url. Exposing the id directly would be a better DX.

Describe the solution you'd like

response = pipe.run(
    data={"prompt_builder": {"template_variables": {"location": "Berlin"}, "prompt_source": messages}}
)
 
trace_id = response["tracer"]["trace_id"]
@marcklingen marcklingen added the feature request Ideas to improve an integration label Dec 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request Ideas to improve an integration
Projects
None yet
Development

No branches or pull requests

1 participant