From b777e25f6a7b6cd214b3060a6ebffc6bb270c027 Mon Sep 17 00:00:00 2001 From: Richard Roggenkemper Date: Fri, 12 Sep 2025 14:49:18 -0700 Subject: [PATCH] better analytics --- .../events/interfaces/crashContent/exception/content.tsx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/static/app/components/events/interfaces/crashContent/exception/content.tsx b/static/app/components/events/interfaces/crashContent/exception/content.tsx index e57edb775ec202..6d88f562754a78 100644 --- a/static/app/components/events/interfaces/crashContent/exception/content.tsx +++ b/static/app/components/events/interfaces/crashContent/exception/content.tsx @@ -17,6 +17,7 @@ import type {Event, ExceptionType, ExceptionValue} from 'sentry/types/event'; import type {Project} from 'sentry/types/project'; import {StackType} from 'sentry/types/stacktrace'; import {defined} from 'sentry/utils'; +import useRouteAnalyticsParams from 'sentry/utils/routeAnalytics/useRouteAnalyticsParams'; import useProjects from 'sentry/utils/useProjects'; import {SectionKey} from 'sentry/views/issueDetails/streamline/context'; import { @@ -256,6 +257,10 @@ export function Content({ const isSampleError = useIsSampleEvent(); + useRouteAnalyticsParams({ + num_exceptions: values?.length ?? 0, + }); + // Organization context may be unavailable for the shared event view, so we // avoid using the `useOrganization` hook here and directly useContext // instead.