Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

fix(toolbar): disable global exception autocapture (#76527)

Manoel Aranda Neto1edd75ced1b0
diff --git a/frontend/src/toolbar/toolbarPosthogJS.ts b/frontend/src/toolbar/toolbarPosthogJS.ts
index bd06ec19893f..7a10ec8de83f 100644
--- a/frontend/src/toolbar/toolbarPosthogJS.ts
+++ b/frontend/src/toolbar/toolbarPosthogJS.ts
@@ -20,6 +20,8 @@ const initResult = posthog.init(
featureFlags: {},
},
autocapture: false,
+ // The toolbar runs on customer pages and must not install global exception handlers.
+ capture_exceptions: false,
capture_pageview: false,
capture_pageleave: false,
disable_surveys: true,