Tracing LangGraph using the native LangSmith is best if you want a quick and simple setup focused solely on LangSmith's observability features, with no additional code changes required.
Perform the following steps on the same machine as the Secure Agent.
1Navigate to the latest AIAgentRuntime package path:
Note: If you didn't create a custom project, you can omit the "export LANGSMITH_PROJECT=<project name>" line. LangSmith will then use the default project named "default".
Your startup.sh file should look like the following image:
3Restart the Secure Agent.
The following image shows an example of a LangGraph trace performed in the LangSmith dashboard: