Installation
Setup
LangChain agents
LangGraph
Langflow
In Langflow, add the callback to any component that uses tools:- Open your flow in the Langflow UI
- Click on the Agent or Tool component
- Under Advanced Settings, add to the callbacks list:
What gets traced
Every time a LangChainTool is called — whether it’s a database lookup, web search, API call, or MCP server tool — LangSight records:
- Tool name
- Start time + latency
- Success / error / timeout status
- Error message (if failed)
- Agent name + session ID
View traces
Multi-agent (LangGraph)
For LangGraph workflows with multiple agents, passtrace_id to group all agents under one task:
MCP servers in LangChain
If your LangChain agent uses MCP servers as tools, LangSight gives you full observability:- Tool call traces via this callback
- MCP server health via
langsight mcp-health - Security scanning via
langsight security-scan