Self-hosted Langfuse running as a Google cloud service not showing traces #2871
-
Describe the bugThis is from a production setup running on google cloud as cloud run services. Setup:
What is working:
What is not working:
For debugging purposes we have added langfuse_context.flush() in the code and also set the LANGFUSE_FLUSH_AT=1. Any help or suggestion will be greatly appreciated. Thank you. To reproduce
SDK and container versionsAdditional informationNo response Are you interested to contribute a fix for this bug?No |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 9 replies
-
|
which python version do you use? afaik langgraph tarcing only works on more recent python versions, more on this here: #1926 moving this to a support thread |
Beta Was this translation helpful? Give feedback.
-
|
Resolved. |
Beta Was this translation helpful? Give feedback.
Thanks for the quick call, the issue here was that the CallbackHandler was initialized independently from the @observe decorator. We changed to langfuse_context.get_current_langchain_handler() whcih should resolve the issue as langfuse_context.flush() will flush the events created by this handler then.