Langsmith Traces

Integrate LangSmith tracing into AI applications and query trace data.

1.1k|86|Updated Jan 22, 2026
One-click install
npx skills add https://github.com/langchain-ai/langchain-skills --skill langsmith-traces
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Langsmith Traces
Source: https://github.com/langchain-ai/langchain-skills/tree/main/config/skills/langsmith-trace
Command: npx skills add https://github.com/langchain-ai/langchain-skills --skill langsmith-traces

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires langsmith, click, rich, python-dotenv, commander, chalk, cli-table3, ora, tsx, typescript, @types/node, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill helps you understand and utilize LangSmith's powerful tracing capabilities, enabling you to debug, analyze, and optimize your AI applications effectively.

Core Features & Use Cases

  • Add Tracing: Learn how to integrate LangSmith tracing into your LangChain/LangGraph applications or other frameworks.
  • Query Traces: Discover how to query and export trace data for debugging, analysis, and dataset generation.
  • Use Case: Debug a complex agent's behavior by examining its trace in LangSmith, identifying where it went wrong, and then exporting the trace data to create a new training example.

Quick Start

Use the Langsmith Traces skill to list the last 10 traces from your default project.

Frequently Asked Questions about Langsmith Traces

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I add LangSmith tracing to LangChain or LangGraph applications?

LangSmith tracing integrates automatically into LangChain and LangGraph applications. You can enable it to capture execution data without modifying code, allowing you to debug and analyze agent behavior effectively.

How do I implement manual tracing for AI frameworks outside of LangChain?

Manual tracing for other frameworks uses decorators and wrappers. This allows you to instrument arbitrary Python or TypeScript code to capture execution steps and send them to LangSmith for observability.

How do I query and filter LangSmith trace data from the command line?

You can query and filter LangSmith trace data using provided CLI scripts. These scripts allow you to list recent runs, apply filters, and export the resulting trace data for debugging or dataset generation.

What is the difference between traces and runs in LangSmith?

Traces represent the complete execution path of an operation, while runs are the individual steps within that trace. Understanding this distinction is crucial for effective analysis and pinpointing agent failures.

Can I export LangSmith trace data to create training datasets?

Yes, you can query and export trace data. By examining a trace to identify where an agent failed, you can export that data to create a new training example for future optimization.