: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.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
feat(error-tracking): rename the ui location property to ui_source (#111752)
Hugues Pouillotedf85a585636
diff --git a/frontend/src/lib/components/Alerting/AlertWizard/alertWizardLogic.ts b/frontend/src/lib/components/Alerting/AlertWizard/alertWizardLogic.tsindex e812ee2ddd45..17e9c42a7606 100644--- a/frontend/src/lib/components/Alerting/AlertWizard/alertWizardLogic.ts+++ b/frontend/src/lib/components/Alerting/AlertWizard/alertWizardLogic.ts@@ -790,7 +790,7 @@ export const alertWizardLogic = kea<alertWizardLogicType>([await api.hogFunctions.create(configuration)posthog.capture('error_tracking_alert_created', {- source: 'wizard',+ ui_source: 'wizard',trigger_event: subTemplate.filters?.events?.[0]?.id ?? null,subtemplate_id: triggerKey,destination_key: destination.key,diff --git a/frontend/src/scenes/hog-functions/configuration/hogFunctionConfigurationLogic.tsx b/frontend/src/scenes/hog-functions/configuration/hogFunctionConfigurationLogic.tsxindex c05a2132b736..2f40f57e29c6 100644--- a/frontend/src/scenes/hog-functions/configuration/hogFunctionConfigurationLogic.tsx+++ b/frontend/src/scenes/hog-functions/configuration/hogFunctionConfigurationLogic.tsx@@ -1059,7 +1059,7 @@ export const hogFunctionConfigurationLogic = kea<hogFunctionConfigurationLogicTy)if (isNew && errorTrackingTriggerEvent) {posthog.capture('error_tracking_alert_created', {- source: 'traditional',+ ui_source: 'traditional',trigger_event: errorTrackingTriggerEvent,subtemplate_id: res.template?.id,has_custom_filters: res.filters && Object.keys(res.filters).length > 1,diff --git a/products/error_tracking/frontend/components/IssueActions/issueActionsLogic.tsx b/products/error_tracking/frontend/components/IssueActions/issueActionsLogic.tsxindex 6bad8c74ec90..f01907396d46 100644--- a/products/error_tracking/frontend/components/IssueActions/issueActionsLogic.tsx+++ b/products/error_tracking/frontend/components/IssueActions/issueActionsLogic.tsx@@ -281,7 +281,7 @@ export const issueActionsLogic = kea<issueActionsLogicType>([posthog.capture('error_tracking_issue_update_status', {status,issue_id: id,- source: 'issue_actions',+ ui_source: 'issue_actions',})await api.errorTracking.updateIssue(id, { status })})@@ -293,7 +293,7 @@ export const issueActionsLogic = kea<issueActionsLogicType>([posthog.capture('error_tracking_issue_update_severity', {severity,issue_id: id,- source: 'issue_actions',+ ui_source: 'issue_actions',})await errorTrackingIssuesPartialUpdate(String(teamLogic.values.currentProjectId), id, {severity,diff --git a/products/error_tracking/frontend/scenes/ErrorTrackingConfigurationScene/alerting/ErrorTrackingAlerting.tsx b/products/error_tracking/frontend/scenes/ErrorTrackingConfigurationScene/alerting/ErrorTrackingAlerting.tsxindex a7b5bcc06f3d..abab56bd1c24 100644--- a/products/error_tracking/frontend/scenes/ErrorTrackingConfigurationScene/alerting/ErrorTrackingAlerting.tsx+++ b/products/error_tracking/frontend/scenes/ErrorTrackingConfigurationScene/alerting/ErrorTrackingAlerting.tsx@@ -54,7 +54,7 @@ function ErrorTrackingAlertingInner(): JSX.Element {}}onSwitchToTraditional={() => {posthog.capture('error_tracking_alert_creation_switched_to_traditional', {- source: 'wizard',+ ui_source: 'wizard',})setAlertCreationView(AlertCreationView.Traditional)resetWizard()@@ -102,7 +102,7 @@ function ErrorTrackingAlertingInner(): JSX.Element {size="small"onClick={() => {posthog.capture('error_tracking_alert_creation_started', {- source: 'wizard_button',+ ui_source: 'wizard_button',})setAlertCreationView(AlertCreationView.Wizard)}}diff --git a/products/error_tracking/frontend/scenes/ErrorTrackingIssueScene/ErrorTrackingIssueScene.tsx b/products/error_tracking/frontend/scenes/ErrorTrackingIssueScene/ErrorTrackingIssueScene.tsxindex bc13815c1e3b..0d61981a5c45 100644--- a/products/error_tracking/frontend/scenes/ErrorTrackingIssueScene/ErrorTrackingIssueScene.tsx+++ b/products/error_tracking/frontend/scenes/ErrorTrackingIssueScene/ErrorTrackingIssueScene.tsx@@ -85,7 +85,7 @@ export function ErrorTrackingIssueScene(): JSX.Element {// all three cross-product entry points compare in one breakdown.const openRecordings = useCallback((source: 'header' | 'menubar'): void => {- posthog.capture('viewed recordings from error tracking', { issue_id: issueId, source })+ posthog.capture('viewed recordings from error tracking', { issue_id: issueId, ui_source: source })newInternalTab(urls.replay(ReplayTabs.Home, {...getIssueReplayDateRange(diff --git a/products/error_tracking/frontend/scenes/ErrorTrackingScene/tabs/recommendations/AlertsRecommendationCard.tsx b/products/error_tracking/frontend/scenes/ErrorTrackingScene/tabs/recommendations/AlertsRecommendationCard.tsxindex d2f03c226f3b..843961de097a 100644--- a/products/error_tracking/frontend/scenes/ErrorTrackingScene/tabs/recommendations/AlertsRecommendationCard.tsx+++ b/products/error_tracking/frontend/scenes/ErrorTrackingScene/tabs/recommendations/AlertsRecommendationCard.tsx@@ -67,7 +67,7 @@ export function AlertsRecommendationCard({type="secondary"onClick={() => {posthog.capture('error_tracking_alert_creation_started', {- source: 'recommendation_modal',+ ui_source: 'recommendation_modal',trigger_key: alert.key,})setOpenAlertTriggerKey(alert.key)@@ -145,7 +145,7 @@ function AlertsRecommendationWizardContent({ onClose }: { onClose: () => void })}}onSwitchToTraditional={() => {posthog.capture('error_tracking_alert_creation_switched_to_traditional', {- source: 'recommendation_modal',+ ui_source: 'recommendation_modal',})resetWizard()onClose()diff --git a/products/error_tracking/frontend/scenes/ErrorTrackingScene/tabs/recommendations/RateLimitsRecommendationCard.tsx b/products/error_tracking/frontend/scenes/ErrorTrackingScene/tabs/recommendations/RateLimitsRecommendationCard.tsxindex 92cb2cfbea7d..24bd4a3303cf 100644--- a/products/error_tracking/frontend/scenes/ErrorTrackingScene/tabs/recommendations/RateLimitsRecommendationCard.tsx+++ b/products/error_tracking/frontend/scenes/ErrorTrackingScene/tabs/recommendations/RateLimitsRecommendationCard.tsx@@ -47,7 +47,7 @@ export function RateLimitsRecommendationCard({to={RATE_LIMITS_SETTINGS_URL}onClick={() => {posthog.capture('error_tracking_rate_limit_setup_started', {- source: 'recommendation_card',+ ui_source: 'recommendation_card',rate_limit_key: rateLimit.key,})}}diff --git a/products/error_tracking/frontend/scenes/ErrorTrackingScene/tabs/recommendations/SourceMapsRecommendationCard.tsx b/products/error_tracking/frontend/scenes/ErrorTrackingScene/tabs/recommendations/SourceMapsRecommendationCard.tsxindex e0f93a6173dd..ad63821f64db 100644--- a/products/error_tracking/frontend/scenes/ErrorTrackingScene/tabs/recommendations/SourceMapsRecommendationCard.tsx+++ b/products/error_tracking/frontend/scenes/ErrorTrackingScene/tabs/recommendations/SourceMapsRecommendationCard.tsx@@ -48,7 +48,7 @@ export function SourceMapsRecommendationCard({targetBlankonClick={() => {posthog.capture('error_tracking_source_maps_docs_clicked', {- source: 'recommendation_card',+ ui_source: 'recommendation_card',})}}>diff --git a/products/error_tracking/frontend/scenes/ErrorTrackingScene/tabs/recommendations/recommendationsTabLogic.ts b/products/error_tracking/frontend/scenes/ErrorTrackingScene/tabs/recommendations/recommendationsTabLogic.tsindex 52b2c883405f..1b488b80915e 100644--- a/products/error_tracking/frontend/scenes/ErrorTrackingScene/tabs/recommendations/recommendationsTabLogic.ts+++ b/products/error_tracking/frontend/scenes/ErrorTrackingScene/tabs/recommendations/recommendationsTabLogic.ts@@ -240,7 +240,7 @@ export const recommendationsTabLogic = kea<recommendationsTabLogicType>([posthog.capture('error_tracking_issue_update_status', {status: 'suppressed',issue_id: issueId,- source: 'recommendations',+ ui_source: 'recommendations',})const longRunning = values.recommendations.find(isLongRunningIssuesRecommendation)if (!longRunning) {@@ -255,7 +255,7 @@ export const recommendationsTabLogic = kea<recommendationsTabLogicType>([posthog.capture('error_tracking_issue_update_status', {status: 'active',issue_id: issueId,- source: 'recommendations',+ ui_source: 'recommendations',})const longRunning = values.recommendations.find(isLongRunningIssuesRecommendation)if (!longRunning) {diff --git a/products/error_tracking/frontend/scenes/ErrorTrackingScene/tabs/recommendations/sourceMapsFixWizardLogic.ts b/products/error_tracking/frontend/scenes/ErrorTrackingScene/tabs/recommendations/sourceMapsFixWizardLogic.tsindex 7c1896d42f99..31243682cedd 100644--- a/products/error_tracking/frontend/scenes/ErrorTrackingScene/tabs/recommendations/sourceMapsFixWizardLogic.ts+++ b/products/error_tracking/frontend/scenes/ErrorTrackingScene/tabs/recommendations/sourceMapsFixWizardLogic.ts@@ -179,7 +179,7 @@ export const sourceMapsFixWizardLogic = kea<sourceMapsFixWizardLogicType>([listeners(({ actions, values, cache }) => ({openModal: ({ source }) => {- posthog.capture('error_tracking_source_maps_wizard_opened', { source })+ posthog.capture('error_tracking_source_maps_wizard_opened', { ui_source: source })cache.disposables.dispose('feedback-reveal')cache.disposables.add(() => {const timeout = setTimeout(() => actions.revealFeedback(), FEEDBACK_REVEAL_DELAY_MS)