Documentation
Getting Started
Concepts
Integrations
JavaScript
Python
Browser
LangChain
Others
Features
Analytics
Logging
Tracing
Users
Chat Replays
Feedback
Tags
Tests
More
Data API
Self Hosting
Tracing
Tracing allows you to debug your AI agents and identify issues.
Example of a trace
The easiest way to get started with traces is to use our utility wrapper to automatically track your agents and tools.
Wrapping Agents
By wrapping an agent, input, outputs and errors are automatically tracked.
Any query ran inside the agent will be tied to the agent.
Agents and tools names
If you prefer to use anonymous functions, make sure to pass a name as a 2nd argument to the wrapAgent
and wrapTool
methods.
Wrapping Tools
If your agents use tools, you can wrap them as well to track them.
If a wrapped tool is executed inside a wrapped agent, the tool will be automatically tied to the agent without the need to manually reconcialiate them.