Skip to content

Commit

Permalink
add analytics to app start module
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinL10 committed May 15, 2024
1 parent db27a58 commit 594afde
Showing 1 changed file with 11 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import type {CursorHandler} from 'sentry/components/pagination';
import Pagination from 'sentry/components/pagination';
import {t} from 'sentry/locale';
import type {NewQuery} from 'sentry/types/organization';
import {trackAnalytics} from 'sentry/utils/analytics';
import {browserHistory} from 'sentry/utils/browserHistory';
import type {TableDataRow} from 'sentry/utils/discover/discoverQuery';
import type {MetaType} from 'sentry/utils/discover/eventView';
Expand Down Expand Up @@ -37,7 +38,7 @@ import {
} from 'sentry/views/starfish/components/releaseSelector';
import {PercentChangeCell} from 'sentry/views/starfish/components/tableCells/percentChangeCell';
import {OverflowEllipsisTextContainer} from 'sentry/views/starfish/components/textAlign';
import {SpanMetricsField} from 'sentry/views/starfish/types';
import {ModuleName, SpanMetricsField} from 'sentry/views/starfish/types';
import {STARFISH_CHART_INTERVAL_FIDELITY} from 'sentry/views/starfish/utils/constants';
import {appendReleaseFilters} from 'sentry/views/starfish/utils/releaseComparison';
import {QueryParameterNames} from 'sentry/views/starfish/views/queryParameters';
Expand Down Expand Up @@ -159,7 +160,15 @@ export function SpanOperationTable({
};

return (
<Link to={`${pathname}?${qs.stringify(query)}`}>
<Link
onClick={() =>
trackAnalytics('performance_views.sample_spans.opened', {
organization,
source: ModuleName.APP_START,
})
}
to={`${pathname}?${qs.stringify(query)}`}
>
<OverflowEllipsisTextContainer>{label}</OverflowEllipsisTextContainer>
</Link>
);
Expand Down

0 comments on commit 594afde

Please sign in to comment.