langsmith-observability

Trace, evaluate, and monitor LLM applications using the LangSmith platform.

2|Updated Jan 10, 2026
One-click install
npx skills add https://github.com/Shubh2310-developer/ENGUNITYCORE --skill langsmith-observability-shubh2310-developer
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: langsmith-observability
Source: https://github.com/Shubh2310-developer/ENGUNITYCORE/tree/main/.claude/skills/observability-langsmith
Command: npx skills add https://github.com/Shubh2310-developer/ENGUNITYCORE --skill langsmith-observability-shubh2310-developer

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires langsmith, and includes references (resource) components.

What problem does it solve? Debugging and monitoring LLM applications is difficult because prompts, chains, and agent calls are opaque and hard to reproduce. This Skill provides tracing, dataset-based evaluation, and production monitoring workflows for LLM systems using LangSmith. ## Core Features & Use Cases - Tracing: Capture inputs, outputs, latency, and token usage for every LLM call using the @traceable decorator or the OpenAI wrapper. - Evaluation: Build datasets from production traces and run systematic evaluations with custom, LLM-as-judge, or built-in LangChain evaluators. - Production Monitoring: Track errors, costs, feedback scores, and latency trends, with sampling and batching to control overhead. - Use Case: A team shipping a RAG chatbot traces every retrieval and generation call, builds a regression dataset from low-rated production runs, and runs automated evaluations in CI to catch accuracy drops before release. ## Quick Start Set the LANGSMITH_API_KEY and LANGSMITH_TRACING environment variables, then ask the assistant to add @traceable decorators to your LLM functions so calls appear in the LangSmith dashboard.

Frequently Asked Questions about langsmith-observability

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

FAQPage Schema
How do I trace LLM calls with LangSmith?

Set LANGSMITH_TRACING=true and LANGSMITH_API_KEY, then decorate functions with @traceable or wrap the OpenAI client using langsmith.wrappers.wrap_openai. All calls are automatically captured with inputs, outputs, and latency.

How do I evaluate LLM outputs against a dataset in LangSmith?

Create a dataset with client.create_dataset and add examples, then call langsmith.evaluate with your model function and custom or built-in evaluators. Results include per-example scores and aggregate metrics for comparison across experiments.

LangSmith vs Weights & Biases for LLM monitoring?

LangSmith focuses on LLM tracing, prompt debugging, and dataset-based evaluation, while Weights & Biases targets deep learning experiment tracking and model training. Choose LangSmith for LLM application observability and W&B for training workflows.

Does LangSmith tracing work with LangChain?

Yes, LangChain integration is automatic once LANGSMITH_TRACING=true is set. All chain, prompt, and LLM runs are traced without code changes, and LangChain string evaluators can be used directly in evaluations.

Why are my LangSmith traces not appearing?

Traces fail to appear when LANGSMITH_TRACING is not set to true, the API key is missing or invalid, or the project name is misconfigured. Verify connectivity with Client().list_projects() and call client.flush() to send pending traces.

How do I reduce tracing overhead in production?

Enable background batching with Client(auto_batch_tracing=True), set LANGSMITH_TRACING_SAMPLING_RATE to sample a fraction of traces, and use process_inputs to strip large or sensitive fields from recorded payloads.