langsmith-trace

Instrument applications to generate LangSmith traces for LLM observability.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Instrumentation and trace querying for LangSmith-based applications to observe LLM interactions, performance, and data flow.

Core Features & Use Cases

  • Instrument code to generate end-to-end trace data with LangSmith for LangChain/LangGraph and custom apps.
  • Query and export traces to analyze LLM calls, latency, tokens, and nested operations across runs.
  • Use CLI and wrappers to auto-trace, filter, and export for datasets and debugging workflows.

Quick Start

Install LangSmith tooling, configure API key and project, instrument your code, and run a sample trace to observe the results.

Frequently Asked Questions about langsmith-trace

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

FAQPage Schema
How do I instrument custom code to generate LangSmith traces for end-to-end observability?

To generate LangSmith traces, you instrument custom code or LangChain/LangGraph apps by applying tracing wrappers that capture LLM calls, tools, and nested operations for end-to-end observability.

Can I use the CLI to list, get, and export LangSmith traces?

Yes, you can use the LangSmith CLI to list, get, and export traces. This allows you to query trace data to analyze LLM calls, latency, tokens, and nested operations across your runs.

Do I need to configure environment keys to start tracing LLM calls with LangSmith?

Yes, configuring environment keys is required to start tracing. You must install LangSmith tools, set up your API key and project, then instrument your code to capture LLM interactions.

What is the best way to capture nested operations and tool calls in LangChain applications?

The best way to capture nested operations is by applying LangSmith tracing across LangChain applications. This instruments your code to record tool calls, LLM interactions, and data flow automatically.

Does LangSmith tracing work with LangGraph workflows to observe data flow and performance?

Yes, LangSmith tracing works with LangGraph workflows to observe data flow and performance. It instruments your applications to generate end-to-end trace data capturing LLM interactions and nested operations.