deepset-ai / deepset-ai/haystack-core-integrations

Langfuse makes haystack slow

Open
#1,315 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

integration:langfuse P3
Dominant language
Python
Stars
203
Forks
332
Avg merge
2d 4h
Merged PRs (30d)
80

Description

Describe the bug
Langfuse make haystack slow : for a 13 second pipeline, it takes extra 6 seconds when running with langfuse tracer for a total of 19s.
After profiling my pipeline, it looks like uploading to langfuse take time, as if it was waiting for it to be uploaded to run the next component.

I'm using langfuse self hosted

Describe your environment (please complete the following information):

  • OS: ubuntu (docker)
  • Haystack version: 2.9
  • Integration version: 0.7

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the Langfuse tracer integration and reproduce the reported 13-second pipeline taking about 19 seconds with tracing enabled. Profile the pipeline to confirm whether Langfuse uploads block the next component, then compare the traced and untraced timings; done means the source of the extra delay is identified and the integration no longer adds the reported blocking overhead.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
observability
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.