EUrouter
Broadcast (Beta)

PostHog

Send LLM traces to PostHog for product analytics and LLM observability.

OpenAPI JSON

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

  1. Sign in to PostHog
  2. Go to Settings > Project
  3. Copy your Project API key (starts with phc_)

Add the destination in EUrouter

  1. Go to Broadcast in your dashboard
  2. Click Add Destination next to PostHog
  3. Enter your Project API key
  4. Select your Region (EU or US), or enter a custom URL for self-hosted instances
  5. Click Test Connection to verify
  6. Click Create

Configuration

FieldRequiredDescription
Project API keyYesYour PostHog project API key (phc_...)
RegionYesEU (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.

PropertyDescription
eurouter.decisionallowed, redacted, blocked or error
eurouter.reason_codesList of reason codes, such as pii.blocked or plan.rate_limited
eurouter.pii_countsDetected PII per type, for example { "email": 2 }
eurouter.processing_countriesISO country codes where the request was processed
$ai_http_statusHTTP status EUrouter returned
$ai_is_error, $ai_errorBlocked 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.


Learn more

Was this page helpful?

Still stuck? Contact support

On this page