Set up Langfuse observability
Get your Langfuse API keys
If you do not have Langfuse API keys yet:
- Go to Langfuse Cloud or your self-hosted instance
- Sign up or log in to your account
- Create a new project or select an existing one
- Navigate to Settings > API Keys
- Click Create New API Key
- Copy the Public Key and Secret Key
Create an observability configuration
- On the Idun Agent Platform main page, navigate to Observability
- Click Add configuration
- Select Langfuse
- Enter a Configuration Name (for example, “Langfuse Server 1”)
- Fill in the required API credentials:
- Host URL: Your Langfuse instance URL (for example,
https://cloud.langfuse.comor your self-hosted URL) - Public Key: Your Langfuse public key (starts with
pk-lf-...) - Secret Key: Your Langfuse secret key (starts with
sk-lf-...)
- Host URL: Your Langfuse instance URL (for example,
- Click Create configuration
Observability configurations are saved and reusable across multiple agents. You only need to set up your API keys once.
Attach Langfuse to your agent
- Navigate to the agent you want to trace
- Click Edit Agent
- Click Next to reach the observability configuration step
- Select Langfuse as the observability provider
- Select the Langfuse configuration you want to use
- Click Next
- Click Save changes to finalize
View observability data
Once your agent is running with observability enabled:- Interact with your agent through the Manager UI or API
- Open your Langfuse dashboard at cloud.langfuse.com
- Navigate to your project to view traces
- Agent execution flow
- LLM calls and responses
- Tool usage and results
- Execution time and costs
- Error traces and debugging information
Best practices
- Use descriptive names for observability configurations to identify them when managing multiple agents
- Enable observability during development to catch issues early
- Monitor costs through your Langfuse dashboard to track token usage
Troubleshooting
Observability not working?
- Check API keys: Verify that your public and secret keys are correct
- Verify host URL: Confirm the URL is accessible and correctly formatted
- Check agent logs: Look for connection errors in the agent runtime logs
- Test connectivity: Verify your agent can reach the Langfuse host