langsmith-trace

Record nested LLM, tool, and workflow activity via LangSmith tracing.

Updated May 26, 2026
One-click install
npx skills add https://github.com/anukkrit149/anukkrit-skills --skill langsmith-trace-anukkrit149
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: langsmith-trace
Source: https://github.com/anukkrit149/anukkrit-skills/tree/main/cloud/skills/langsmith-trace
Command: npx skills add https://github.com/anukkrit149/anukkrit-skills --skill langsmith-trace-anukkrit149

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

LangSmith tracing can be difficult to instrument correctly and hard to analyze after runs complete, so debugging agent behavior and exporting trace data becomes slow and error-prone.

Core Features & Use Cases

  • Add tracing to apps: enable end-to-end trace capture using LangChain/LangGraph environment variables, LangSmith OpenTelemetry integration, or framework-agnostic wrappers.
  • Query and export trace data: use the LangSmith CLI to list, fetch full trace hierarchies, and export trace/run data for downstream analysis or dataset generation.
  • Disambiguate traces vs runs: understand trace trees versus individual runs to choose the right CLI operations and filters.

Quick Start

Use the langsmith CLI to list the most recent traces for your project by running a trace list command with the correct project name and API key.

Frequently Asked Questions about langsmith-trace

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

FAQPage Schema
How do I trace and debug LangChain agent behavior?

LangSmith tracing enables observing execution trees and diagnosing agent behavior by recording nested LLM, tool, and workflow activity. You can instrument end-to-end capture using LangChain environment variables, OpenTelemetry integration, or framework-agnostic wrappers.

How do I export LangSmith trace data using the CLI?

You can export LangSmith trace data using the langsmith CLI to list, fetch full trace hierarchies, and export run data. Execute trace and run subcommands with appropriate filters and project scoping for downstream analysis or dataset generation.

Does LangSmith tracing work with non-LangChain Python and JavaScript applications?

LangSmith tracing works across Python and JavaScript/LangChain applications and non-LangChain frameworks. You enable trace capture using OpenTelemetry instrumentation or framework-agnostic traceable wrappers for these environments.

What is the difference between a trace and a run in LangSmith?

A trace represents the complete execution tree, while a run is an individual node within that hierarchy. Disambiguating traces versus runs helps you choose the correct CLI operations and filters when inspecting and exporting data.

Do I need an API key to query LangSmith runs?

Querying LangSmith runs requires a LANGSMITH_API_KEY for authentication. Optional project scoping allows you to filter trace inspection and export tasks to specific projects when using the CLI.

What's the best way to list recent LangSmith traces for a project?

The best way to list recent LangSmith traces is using the langsmith CLI trace list command. Provide your correct project name and LANGSMITH_API_KEY to retrieve and inspect the most recent hierarchical execution data.