Test Error Tracking
Use these buttons to fire test exceptions and verify that they appear in your PostHog project.
Server-side exception
POSTs to /api/test-error,
which raises a RuntimeError
on the Cloudflare Worker. The exception is captured by the PostHog Python client and forwarded to
PostHog as a $exception event.
Frontend JS exception
Calls posthog.capture('$exception', …)
directly from the browser using the PostHog JS SDK already loaded on this page.
After firing a test error, check the
PostHog dashboard
→ Activity → $exception events.
Server-side events appear with
distinct_id: blt-leaf-server;
frontend events use your session's distinct ID.