Skip to main content
From the trace view, you can compare two traces side-by-side, share a trace publicly, and view the server logs associated with a trace execution.

Compare traces

You can start comparing traces from two areas in the UI:
  1. From the Runs tab in the Tracing projects view, select checkboxes next to the traces you would like to compare. Then, select Compare Runs at the bottom of the page to open a side-by-side comparison view.
  2. When you’re viewing a trace, select the more menu to navigate to Compare. This will open the trace run table. Select the trace you want to compare against the original trace. The side pane will open with both traces selected in a side-by-side comparison view.
To stop comparing, close the pane or click on Stop comparing in the upper right-hand side of the pane.

Share a trace

Sharing a trace publicly will make it accessible to anyone with the link. Make sure you’re not sharing sensitive information.If your self-hosted or hybrid LangSmith deployment is within a VPC, then the public link is accessible only to members authenticated within your VPC. For enhanced security, we recommend configuring your instance with a private URL accessible only to users with access to your network.
To share a trace publicly:
  1. Open any trace in the UI.
  2. Click the Share button in the more menu at the top of the trace view.
  3. In the dialog that appears, copy the public link.
Shared traces are accessible to anyone with the link, even without a LangSmith account. They can view the trace but not edit it. To unshare a trace, use either of the following methods:
  1. Open the shared trace, click Public in the toolbar at the top of the trace view, then click Unshare in the dialog.
  2. Go to SettingsShared URLs to view all publicly shared traces in your organization. Click Unshare next to the trace you want to unshare.

View server logs

Viewing server logs for a trace only works with the Cloud SaaS and fully self-hosted deployment options.
When viewing a trace that was generated by a run in LangSmith, you can access the associated server logs directly from the trace view. In the trace view, use the See Logs button in the top right corner, next to the Run in Studio button. Clicking this button will take you to the server logs view for the associated deployment in LangSmith. The server logs view displays logs from both:
  • Agent Server’s own operational logs: Internal server operations, API calls, and system events
  • User application logs: Logs written in your graph with:
    • Python: Use the logging or structlog libraries.
    • JavaScript: Use the re-exported Winston logger from @langchain/langgraph-sdk/logging:
      import { getLogger } from "@langchain/langgraph-sdk/logging";
      
      const logger = getLogger();
      logger.info("Your log message");
      
When you navigate from the trace view, the Filters box will automatically pre-fill with the Trace ID from the trace you just viewed, so you can quickly filter the logs to see only those related to your specific trace execution. Deployment server logs filters