⚗️(frontend) capture console.error in PostHog

Forward `console.error` calls to PostHog on top of the existing
exception capture.

This is experimental: the goal is to gather more information about
buggy situations that do not surface as thrown exceptions today.
May be reverted or filtered depending on the signal-to-noise ratio.
This commit is contained in:
lebaudantoine
2026-08-10 17:31:53 +02:00
committed by aleb_the_flash
parent f0c08bea92
commit 089db20a2e
2 changed files with 6 additions and 0 deletions
+1
View File
@@ -14,6 +14,7 @@ and this project adheres to
- ✨(frontend) add an audio gauge to the microphone select menu
- ✨(frontend) add a sound tester to the output select menu
- ✨(frontend) prompt for permissions when toggling a denied device
- ⚗️(frontend) capture console.error in PostHog
### Changed
@@ -42,6 +42,11 @@ export const useAnalytics = ({
person_profiles: 'always',
capture_pageview: 'history_change',
capture_pageleave: true,
capture_exceptions: {
capture_unhandled_errors: true,
capture_unhandled_rejections: true,
capture_console_errors: true,
},
})
})
}, [id, host, flags_api_host, isDisabled])