Skip to main content
Monitor an Agent Server on LangSmith Cloud with build logs, Agent Server logs, and runtime metrics. Use logs to investigate a specific revision and metrics to track Agent Server performance over time.

View Agent Server logs

Each revision includes build logs and server logs.
From the Agent Servers view:
  1. Select an Agent Server.
  2. In the Revisions table, select a revision. The details panel opens with the Build tab selected.
  3. Review the build logs.
  4. Select the Server tab to view server logs. Server logs become available after LangSmith deploys the revision.
  5. Adjust the date and time range as needed. The default range is Last 7 days.

Forward server logs to Datadog

To forward Agent Server logs to Datadog, configure these environment variables or secrets on the Agent Server:
  • DD_API_KEY: Your Datadog API key.
  • DD_LOGS_ENABLED=true: Enables log forwarding.
To correlate logs with traces, also set DD_LOGS_INJECTION=true. For all supported Datadog variables, see Supported Datadog environment variables.

View Agent Server metrics

To view Agent Server metrics:
  1. From the LangSmith UI, select Agent Servers.
  2. Select an Agent Server.
  3. Select the Monitoring tab. For metric definitions, see Control plane monitoring.
  4. Adjust the date and time range as needed. The default range is Last 15 minutes.

See also