Skip to main content

Command Palette

Search for a command to run...

Observability

Published
1 min readView as Markdown
Observability
  • LangSmith

    • A developer tool/platform for managing and debugging LLM (Large Language Model) applications.

    • Helps with tracing, monitoring, and evaluation of prompts and responses.

  • LangFuse

    • An open-source observability and analytics platform for LLM applications.

    • Provides monitoring, logging, and user feedback integration.

Key Difference Example:

  • LangSmith → Often used for prompt debugging and evaluation.

  • LangFuse → Often used for observability and logging across the lifecycle.


Implementation Notes

LangSmith Environment Setup

Add the following to .env file:

LANGSMITH_TRACING=true
LANGSMITH_ENDPOINT=https://api.smith.langchain.com
LANGSMITH_API_KEY=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
LANGSMITH_PROJECT=calender-ai-project

Installation Command

Run:

npm install @langchain/langgraph @langchain/core

LangFuse Setup

Self-Hosting with Docker Compose

Integration with LangChain

  • Official integration guide: LangFuse x LangChain

  • Explains how to integrate LangFuse observability directly into LangChain apps.

Comparison

FeatureLangSmithLangFuse
SetupEasy, quickHarder (needs Docker, DB setup)
CostCostlyNearly free (self-hosted option)
PurposeDebugging, tracing, evaluationMonitoring, observability, logging
FlexibilityLimited by platform pricing modelFully open-source, customizable