PostHog
InstrumentationSend agent traces and generations to PostHog AI Observability.
Install
Add PostHog AI Observability from eve's registry:
Quick start
eve installs agent/instrumentation/posthog.ts with PostHog's trace exporter. It also links spans to the user who initiated the session when an authenticated principal is available:
Configure
Copy your project token and client API host from PostHog's project settings and expose them as POSTHOG_PROJECT_TOKEN and POSTHOG_HOST. Remove runtimeContext to capture generations anonymously. PostHog groups turns using eve.session.id and preserves eve's trace hierarchy. See PostHog's eve installation guide for verification steps and the OpenTelemetry guide for content policy.