PostHog
PostHog is an open-source product analytics platform. Connect it with Respan to forward LLM call events to PostHog and monitor LLM performance alongside your product analytics.
Set up Respan
Create an account at platform.respan.ai and grab an API key. For gateway, also add credits or a provider key.
Run npx @respan/cli setup to set up with your coding agent.
Gateway
The PostHog integration runs through the Respan gateway. Pass your PostHog credentials in
posthog_integration and Respan forwards LLM events to your PostHog project.Setup
Create your PostHog account
Go to PostHog and create an account. From your PostHog project settings, grab your PostHog API key and host.
Add posthog_integration to your request body
The posthog_base_url is usually https://us.posthog.com or https://eu.posthog.com.
Use the Respan template in PostHog
Use the official Respan template in PostHog to create a dashboard for monitoring LLM performance.