Integrate LangFuse

1. What is Langfuse

Langfuse is an open-source LLM engineering platform that helps teams collaborate on debugging, analyzing, and iterating their applications.

Introduction to Langfuse: https://langfuse.com/


2. How to Configure Langfuse

  1. Register and log in to Langfuse on the official website

  2. Create a project in Langfuse. After logging in, click New on the homepage to create your own project. The project will be used to associate with applications in Dify for data monitoring.

Edit a name for the project.

  1. Create project API credentials. In the left sidebar of the project, click Settings to open the settings.

In Settings, click Create API Keys to create project API credentials.

Copy and save the Secret Key, Public Key, and Host.

  1. Configure Langfuse in Dify. Open the application you need to monitor, open Monitoring in the side menu, and select Configure on the page.

After clicking configure, paste the Secret Key, Public Key, Host created in Langfuse into the configuration and save.

Once successfully saved, you can view the status on the current page. If it shows as started, it is being monitored.


3. Viewing Monitoring Data in Langfuse

After configuration, debugging or production data of the application in Dify can be viewed in Langfuse.

Last updated