Instrument LLM Analytics

Add PostHog LLM analytics to trace AI model usage. Use after implementing LLM features or reviewing PRs to ensure all generations are captured with token counts, latency, and costs. Also handles initial PostHog SDK setup if not yet installed.

posthog 8baed4b 40 files · 309.9 KB Updated

File contents

posthog/ai-plugin/tree/main/skills/instrument-llm-analytics commit 8baed4bf6a

Frequently asked questions

npx skillmds add posthog/instrument-llm-analytics