Broadcast (Beta)
PostHog
Send LLM traces to PostHog for product analytics and LLM observability.
PostHog is an open-source product analytics platform. Connect it to EUrouter to track LLM usage alongside your other product events.
Setup
Get your PostHog project API key
- Sign in to PostHog
- Go to Settings > Project
- Copy your Project API key (starts with
phc_)
Add the destination in EUrouter
- Go to Broadcast in your dashboard
- Click Add Destination next to PostHog
- Enter your Project API key
- Select your Region (EU or US), or enter a custom URL for self-hosted instances
- Click Test Connection to verify
- Click Create
Configuration
| Field | Required | Description |
|---|---|---|
| Project API key | Yes | Your PostHog project API key (phc_...) |
| Region | Yes | EU (https://eu.i.posthog.com), US (https://us.i.posthog.com), or a custom URL |
Decision properties
Every $ai_generation and $ai_embedding event carries the decision EUrouter made for the request.
| Property | Description |
|---|---|
eurouter.decision | allowed, redacted, blocked or error |
eurouter.reason_codes | List of reason codes, such as pii.blocked or plan.rate_limited |
eurouter.pii_counts | Detected PII per type, for example { "email": 2 } |
eurouter.processing_countries | ISO country codes where the request was processed |
$ai_http_status | HTTP status EUrouter returned |
$ai_is_error, $ai_error | Blocked and failed requests only: the first reason code, or the decision |
Blocked and rejected requests arrive too, with zero tokens, no cost and never a prompt. See the decision record for the values.