Bug: Langfuse Integration broken
Self Checks
- [x] This is only for bug report, if you would like to ask a question, please head to Discussions.
- [x] I have searched for existing issues search for existing issues, including closed ones.
- [x] I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
- [x] [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)
- [x] Please do not modify this template :) and fill in all the required fields.
Dify version
Dify Cloud
Cloud or Self Hosted
Cloud
Steps to reproduce
- Create a new chatbot
- Add the credentials for the Langfuse integration
- Send messages to the chatbot -> No traces show up in Langfuse.
✔️ Expected Behavior
Traces show up in Langfuse after exchanging messages with the chatbot
❌ Actual Behavior
No traces in Langfuse.
I found a similar open issue regarding Langfuse integration not working consistently in the cloud version of Dify. The suggested solution involves checking several potential causes:
-
Network and Security Configurations: The cloud version of Dify might have different network policies that could affect Langfuse tracking.
-
Error Logging: Review the logs for any specific error messages that might indicate failures in Langfuse tracking.
-
Version Differences: Ensure that both Dify and Langfuse are running compatible versions. Dify requires Langfuse version
~2.51.3and Python version>=3.11,<3.13for proper functionality [1][2].
Additionally, there is a known limitation in Dify version 0.14.2 where Langfuse tracing does not work with ChatFlow, although it works with ChatBot. This issue is scheduled to be fixed in version 0.15 [3].
To continue talking to Dosu, mention @dosu.
Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Bug Report | Other
I have tested it, and it looks like it's working great. Could you confirm if your key and project are correct?
@ZhouhaoJiang Thanks. I can't get it to work with the following settings, what am I doing wrong? https://github.com/orgs/langfuse/discussions/5871#discussioncomment-12420442
fix in #15597
@ZhouhaoJiang Thanks, for fix. I tried with Dify Cloud v1.1.0, may not be resolved yet. I would like you to try it.
Dify Cloud (v1.1.0)
sandbox plan
Langfuse EU Cloud (v3.43.0)
hobby plan
Hi @ZhouhaoJiang, Langfuse maintainer here. I also just tested the integration with Dify Cloud, but no traces have been ingested to Langfuse.
Could you reopen this issue again?
@jannikmaierhoefer @IbukiMoriya
Thank you for your patience. Due to an update in our Cloud version 1.0.0, there was a misconfiguration in the Celery worker parameters. The issue has now been resolved, and the Cloud version is back to normal.
@ZhouhaoJiang Hello. Currently, the privately deployed version is also encountering this issue. May I ask which version will fix this problem? Thank you.