Open source video conferencing app powered by LiveKit. Built with Django and React.
✨(summary) report exception type in failure analytics
Florent Chehab052d3c1b2265
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex f586118a..e1793da3 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -8,9 +8,15 @@ and this project adheres to## [Unreleased]+### Added++- ✨(summary) report exception type in failure analytics+## Fixed- 🐛(transcription) fix silent bug in speaker assignment+- 🐛(summary) extend tasks auto retry logic+- 🐛(summary) properly detect when failure webhook should be sent### Changeddiff --git a/src/summary/summary/core/analytics.py b/src/summary/summary/core/analytics.pyindex 2fbcff88..c1a9391e 100644--- a/src/summary/summary/core/analytics.py+++ b/src/summary/summary/core/analytics.py@@ -202,13 +202,16 @@ class MetadataManager:},)- def capture(self, task_id, event_name):+ def capture(self, task_id, event_name, extra_properties=None):"""Capture analytics event with task metadata and clean up."""if self._is_disabled or not self.has_task_id(task_id):returnmetadata = self._get_metadata(task_id)+ if extra_properties:+ metadata = {**metadata, **extra_properties}+if "start_time" in metadata:metadata["execution_time"] = round(time.time() - metadata["start_time"], 2)del metadata["start_time"]diff --git a/src/summary/summary/core/celery_worker.py b/src/summary/summary/core/celery_worker.pyindex d491a286..e12e17ca 100644--- a/src/summary/summary/core/celery_worker.py+++ b/src/summary/summary/core/celery_worker.py@@ -612,6 +612,7 @@ def handle_transcribe_v2_failed(metadata_manager.capture(task_id,settings.posthog_transcript_failure,+ {"exception_type": type(exception).__name__},)call_webhook_v2_task.apply_async(args=[@@ -720,6 +721,7 @@ def handle_summarize_v2_failed(metadata_manager.capture(task_id,settings.posthog_summary_failure,+ {"exception_type": type(exception).__name__},)call_webhook_v2_task.apply_async(args=[