Langfuse Setup Guide
This guide walks through deploying Langfuse and connecting it to your CRAFT solutions. Langfuse provides LLM call tracing, evaluation, and prompt management for Data Insights, Data Governance, and Semiconductor solutions.Prerequisites
- A running CRAFT deployment (any version)
- Docker and Docker Compose (for Docker deployment) or a Kubernetes cluster
- Domain name for the Langfuse instance (recommended for production)
Step 1: Deploy Langfuse
- Docker Compose
- Kubernetes (Helm)
.env.local with your configuration:http://localhost:3000 (or your configured domain).Step 2: Create a Langfuse Project
- Navigate to your Langfuse instance
- Sign up for an account (or log in with the admin account)
- Create a new Project for each solution you want to trace:
data-insights, for Data Insights tracesdata-governance, for Data Governance tracessemiconductor, for Semiconductor traces
- In each project, go to Settings → API Keys and copy the Public Key and Secret Key
Step 3: Store Credentials
Store Langfuse credentials as Kubernetes Secrets (or in your Secrets backend):Step 4: Configure Solutions
Set the Langfuse environment variables in each solution’s Helm values:Data Insights
Data Governance
Same configuration, referencing the data-governance project keys:Semiconductor
Apply to both the Backend API and AI Agent services:Step 5: Verify Traces
After deploying the configuration, trigger an LLM call in any solution:- In Data Insights: ask a natural language question
- In Data Governance: run a profiling job
- In Semiconductor: send a chat message to the AI agent
Troubleshooting
No traces appearing in Langfuse
No traces appearing in Langfuse
- Verify
LANGFUSE_HOST,LANGFUSE_PUBLIC_KEY, andLANGFUSE_SECRET_KEYare set correctly in the pod - Check that the Langfuse host is reachable from the pod:
kubectl exec -it <pod> -- curl -I https://langfuse.example.com - Check solution logs for Langfuse callback errors
- Verify the public key corresponds to the correct Langfuse project
Langfuse UI not accessible
Langfuse UI not accessible
- Check pod status:
kubectl get pods -n langfuse - Check worker logs:
kubectl logs -n langfuse -l app=langfuse-worker - Verify the
NEXTAUTH_URLmatches the URL you’re accessing

