Skip to content

Latest commit

 

History

History
24 lines (17 loc) · 400 Bytes

File metadata and controls

24 lines (17 loc) · 400 Bytes

LangChain + PostHog AI Examples

Track LangChain LLM calls with PostHog.

Setup

cp .env.example .env
# Fill in your API keys in .env
uv sync

Examples

  • callback_handler.py - PostHog callback handler with tool calling
  • otel.py - OpenTelemetry instrumentation exporting to PostHog

Run

source .env
uv run python callback_handler.py
uv run python otel.py