LangSmith Monitor Skill

Monitor LangSmith traces, runs, and performance metrics via Python API.

38|9|Updated Oct 30, 2025
One-click install
npx skills add https://github.com/IgorGanapolsky/trading --skill langsmith-monitor-skill
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: LangSmith Monitor Skill
Source: https://github.com/IgorGanapolsky/trading/tree/main/.claude/skills/langsmith_monitor
Command: npx skills add https://github.com/IgorGanapolsky/trading --skill langsmith-monitor-skill

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill offers continuous monitoring of LangSmith traces, runs, and health metrics for LLMS and RL pipelines.

Core Features & Use Cases

  • Health checks: monitor system health and connectivity.
  • Run tracking: fetch recent runs and stats.
  • Trace details: inspect trace information for debugging.
  • Cost awareness: track token usage and costs.

Quick Start

Instantiate LangSmithMonitor and call monitor_health() or get_recent_runs() for a quick snapshot.

Frequently Asked Questions about LangSmith Monitor Skill

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

FAQPage Schema
How do I monitor LangSmith traces and runs for observability?

Monitor LangSmith traces and runs using the LangSmithMonitor class, which fetches recent runs, retrieves project statistics, and inspects trace details via API calls. Instantiate with your LANGCHAIN_API_KEY and call methods like get_recent_runs() or get_trace_details() to return structured JSON data for dashboards and diagnostics.

Can I track token usage and costs across LangSmith projects?

Yes. The LangSmith monitoring Skill enables cost awareness by retrieving project statistics that include token usage metrics. Call get_project_stats() to access cost and token data across your LangSmith projects.

How do I check LangSmith system health and connectivity?

Call the monitor_health() method on the LangSmithMonitor instance to perform health checks and verify system connectivity. The method returns standardized JSON responses indicating the status of your LangSmith connection.

Does this monitoring work with RL training workflows?

Yes. The Skill supports monitoring LangSmith traces and runs across both LLM pipelines and reinforcement learning training workflows, enabling health checks and performance metric retrieval for both use cases.

What API key do I need to set up LangSmith monitoring?

Set up monitoring by configuring the LANGCHAIN_API_KEY environment variable. The LangSmithMonitor class uses this API key to authenticate with the LangSmith client and access traces, runs, and project metrics.

How do I debug specific traces in LangSmith?

Retrieve detailed trace information by calling get_trace_details() on the LangSmithMonitor instance. This method returns structured trace data for inspection, helping identify issues in your LLM or RL pipeline execution.