These tools overlap less than the search suggests. PostHog is a product analytics platform that records each LLM call with its prompt, cost and latency beside the user's session replay and errors, with 100K free AI events a month in its cloud. TruLens is an MIT-licensed Python library that traces an app over OpenTelemetry and scores each step with LLM judges, storing results locally or in Postgres or Snowflake.
PostHog and TruLens answer different questions about the same AI feature. PostHog tells you who hit a bad answer, what it cost and what they did next; TruLens tells you whether the answer was grounded in the retrieved context and whether this week's prompt beats last week's. A team that needs both can run both, and many should.
PostHog's strength is context. Each model call is captured with its prompt, response, tokens, cost and latency, grouped into traces and linked to the user's session replay, funnel and any exception. SDK wrappers cover OpenAI, Anthropic, the Claude Agent SDK, Google, the Vercel AI SDK, LangChain, LiteLLM and OpenRouter. The cloud gives 100K AI observability events a month free; above that the rate starts at $0.00035 an event and falls to $0.00008 by 1M, which by our arithmetic from the published tiers comes to about $100 for 1M events. Platform packages add $250 to $2,000 a month for retention, SSO and audit features.
TruLens's strength is judgement. You decorate functions with @instrument, each call becomes an OpenTelemetry span that can be exported to Jaeger, Tempo or Datadog, and feedback functions score the spans with an LLM judge or a smaller model. It ships the RAG triad of context relevance, groundedness and answer relevance, plus seven agent evaluators. Snowflake maintains it, and version 2.16.0 came out on 19 October 2026. Its README reports a groundedness F1 of 0.81 on LLM-AggreFact; that is the project's own figure, not an independent result.
Data control splits them sharply. TruLens writes to SQLite on your machine, or to your own Postgres or Snowflake, and sends content only to the judge provider you configure. PostHog's self-hosted hobby deployment is officially unsupported, has no versioned releases and leaves out the paid and AI features, so in practice your prompts live in PostHog Cloud in the US or EU. Its privacy mode strips prompt and completion text from stored events, at the price of the detail you came for.
The bills scale differently too. PostHog charges per event, so the cost tracks traffic and can be read off a table. TruLens is free, but each feedback function on each record is at least one judge call, so three evaluators over 1,000 records is at least 3,000 model calls per run. With about 3,700 GitHub stars against PostHog's 41,000, TruLens also has a smaller pool of answered questions when something breaks.