Skip to main content
Monitor agent execution, LLM calls, tool usage, and token costs in LangSmith.

Quick Start

1

Install Dependencies

2

Set Environment Variables

3

Run Your Agent

That’s it — three lines of setup. Every LLM call, tool call, and agent step is automatically traced to your LangSmith dashboard.

How It Works


Configuration Options


Common Patterns


What You See in LangSmith


Diagnostics & Verification

Check your setup with the built-in doctor:

PraisonAI Branding

Every agent and workflow span automatically includes PraisonAI branding in LangSmith metadata: Workflow spans also capture structured input (agent names, task descriptions) and output.

Best Practices

Set LANGSMITH_PROJECT or pass project_name to group traces by environment or feature.
Auto-instrumentation traces everything automatically. Only use explicit obs.trace() when you need custom trace boundaries or additional metadata.
Keep API keys out of code. Use .env files or your deployment platform’s secret management.
LangSmith traces include token counts for every LLM call. Use this to identify expensive operations and optimize prompts.

Observability Overview

All supported observability providers

Langfuse

Alternative open-source observability