feat: enable automatic exception capture in Posthog analytics

This commit is contained in:
Paul Gauthier 2024-12-04 19:55:56 -08:00 committed by Paul Gauthier (aider)
parent 4bf96aaca0
commit f3a228c79a

View file

@ -52,7 +52,10 @@ class Analytics:
# self.mp = Mixpanel(mixpanel_project_token)
self.ph = Posthog(
project_api_key=posthog_project_api_key, host=posthog_host, on_error=self.posthog_error
project_api_key=posthog_project_api_key,
host=posthog_host,
on_error=self.posthog_error,
enable_exception_autocapture=True,
)
def disable(self, permanently):