langsmith-trace

Instrument applications and query LangSmith traces to diagnose issues.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/HyunjunJeon/SDS-AX-Advanced-2026-1 --skill langsmith-trace-hyunjunjeon
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: langsmith-trace
Source: https://github.com/HyunjunJeon/SDS-AX-Advanced-2026-1/tree/main/Day-01/.agents/skills/langsmith-trace
Command: npx skills add https://github.com/HyunjunJeon/SDS-AX-Advanced-2026-1 --skill langsmith-trace-hyunjunjeon

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Instrument applications and query traces to diagnose issues and optimize performance.

Core Features & Use Cases

  • Automatic tracing for LangChain/LangGraph apps and manual wrapping for non-framework code.
  • CLI-based querying, exporting, and metadata capture for traces and runs.
  • Use Case: Quickly identify latency hotspots by exporting and analyzing traces.

Quick Start

Enable LangSmith tracing in your application and run a trace-enabled operation to generate trace data.

Frequently Asked Questions about langsmith-trace

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

FAQPage Schema
How do I enable LangSmith tracing for my application?▼

To enable LangSmith tracing, configure the proper environment variables in your application and run a trace-enabled operation to generate trace data.

Can I trace non-LangChain code with LangSmith?▼

Yes, you can trace non-framework code using manual wrapping, while LangChain and LangGraph applications are supported through automatic tracing.

How do I export traces using the CLI to find latency hotspots?▼

Export traces by using CLI-based querying to capture metadata and runs, allowing you to analyze the exported data and quickly identify latency hotspots.

What environment variables do I need to set for LangSmith instrumentation?▼

Proper environment configuration is required for LangSmith instrumentation, including setting the necessary environment variables and ensuring the LangSmith CLI is installed.

How does manual wrapping work for tracing non-framework Python code?▼

Manual wrapping allows you to instrument non-framework code by explicitly adding trace boundaries, capturing execution flows that automatic tracing cannot detect.

Do I need the LangSmith CLI to query and export trace datasets?▼

Yes, the LangSmith CLI is required to perform querying, exporting, and metadata capture, ensuring proper trace naming and export practices to generate usable datasets.