dify-docs/en/guides/monitoring/integrate-external-ops-tools/integrate-langfuse.md

2.9 KiB

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.

{% hint style="info" %} Introduction to Langfuse: https://langfuse.com/ {% endhint %}


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.

Create a project in Langfuse

Edit a name for the project.

Create a project in Langfuse

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

Create project API credentials

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

Create project API credentials

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

Get API Key configuration

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

Configure Langfuse

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

Configure Langfuse

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

View configuration status


3. Viewing Monitoring Data in Langfuse

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

Debugging applications in Dify

Viewing application data in Langfuse

Viewing application data in Langfuse