
Observability with LangSmith¶
This guide shows you how to set up LangSmith to add observability to your agents for monitoring, tracing, and debugging. With observability enabled, you can track agent execution, view traces, and analyze performance in real-time using LangSmith.
Before starting this guide make sure to follow the Quickstart Guide to have your First Agent running on Idun Agent Platform.
Setting Up Observability¶
You can add observability to your agent either when creating it or by editing an existing agent in the Manager UI.
Step 1: Get Your LangSmith API Key¶
If you don't have a LangSmith API key yet:
- Go to LangSmith
- Sign up or log in to your account
- Navigate to Settings (gear icon) → API Keys
- Click Create API Key
- Copy your API Key
Step 2: Navigate to Observability Configuration¶
- On Idun Agent Platform main page, navigate to Observability
- Go to Add configuration
- Select LangSmith
- Enter a Configuration Name (e.g., "LangSmith Prod")
- Fill in the required details:
- API Key: Your LangSmith API key (starts with
lsv2-...) - Project Name: The name of the project in LangSmith (e.g.,
defaultorprod-agent) - Project ID: (Optional) The specific project identifier if needed
- Endpoint: (Optional) Custom endpoint if you are self-hosting LangSmith (e.g.,
https://api.smith.langchain.com) - Tracing Enabled: Toggle to enable/disable tracing globally
- Capture Inputs/Outputs: Toggle to log full text of inputs and outputs
- API Key: Your LangSmith API key (starts with
- Finnaly, click Create configuration

Warning
Keep your API key secure. Never commit it to version control or share it publicly.
Step 3: Add LangSmith observability to your agent¶
- Navigate to your agent you want to trace and observe with LangSmith
- Click Edit Agent
- Click Next to go to the observability config
- Select LangSmith in observability
- Click on the LangSmith configuration you want to use for your agent.
- Click Next
- Finnalize with Save changes
Finnaly, on your agent page, click đŸ”„Restart to reload the agent configuration and enable LangSmith observability.
Viewing Observability Data¶
Once your agent is running with observability enabled:
- Interact with your agent through the Manager UI or API
- Open your LangSmith dashboard at smith.langchain.com
- Navigate to your project to view traces
You'll see detailed traces showing the execution run tree, LLM inputs/outputs, and latency information.

Best Practices¶
- Use distinct projects for development and production
- Tag runs if supported to filter traces easily (configured within agent logic)
- Review error traces in LangSmith to debug issues quickly
Troubleshooting¶
Observability not working?¶
- Check API Key: Ensure it is valid and has permissions
- Verify Project Name: Traces will be sent to the "default" project if not specified or incorrect
- Check Tracing Enabled: Ensure the toggle is set to true in the configuration