diff --git a/static/app/components/events/interfaces/performance/eventTraceView.spec.tsx b/static/app/components/events/interfaces/performance/eventTraceView.spec.tsx index 08fde598d6366e..7817a6df7657c4 100644 --- a/static/app/components/events/interfaces/performance/eventTraceView.spec.tsx +++ b/static/app/components/events/interfaces/performance/eventTraceView.spec.tsx @@ -159,9 +159,6 @@ describe('EventTraceView', () => { ); expect(await screen.findByText('Trace Preview')).toBeInTheDocument(); - expect( - await screen.findByRole('link', {name: 'View Full Trace'}) - ).toBeInTheDocument(); expect( screen.getByText('One other issue appears in the same trace.') ).toBeInTheDocument(); diff --git a/static/app/components/events/interfaces/performance/eventTraceView.tsx b/static/app/components/events/interfaces/performance/eventTraceView.tsx index 7597b18ae15de7..a540a13e447641 100644 --- a/static/app/components/events/interfaces/performance/eventTraceView.tsx +++ b/static/app/components/events/interfaces/performance/eventTraceView.tsx @@ -4,7 +4,6 @@ import type {LocationDescriptor} from 'history'; import {LinkButton} from 'sentry/components/button'; import ExternalLink from 'sentry/components/links/externalLink'; -import Link from 'sentry/components/links/link'; import {generateTraceTarget} from 'sentry/components/quickTrace/utils'; import {t} from 'sentry/locale'; import type {Event} from 'sentry/types/event'; @@ -14,7 +13,6 @@ import {defined} from 'sentry/utils'; import {trackAnalytics} from 'sentry/utils/analytics'; import useRouteAnalyticsParams from 'sentry/utils/routeAnalytics/useRouteAnalyticsParams'; import {useLocation} from 'sentry/utils/useLocation'; -import useOrganization from 'sentry/utils/useOrganization'; import {SectionKey} from 'sentry/views/issueDetails/streamline/context'; import {InterimSection} from 'sentry/views/issueDetails/streamline/interimSection'; import {TraceIssueEvent} from 'sentry/views/issueDetails/traceTimeline/traceIssue'; @@ -144,8 +142,6 @@ function getHrefFromTraceTarget(traceTarget: LocationDescriptor) { } function OneOtherIssueEvent({event}: {event: Event}) { - const location = useLocation(); - const organization = useOrganization(); const {isLoading, oneOtherIssueEvent} = useTraceTimelineEvents({event}); useRouteAnalyticsParams(oneOtherIssueEvent ? {has_related_trace_issue: true} : {}); @@ -153,25 +149,9 @@ function OneOtherIssueEvent({event}: {event: Event}) { return null; } - const traceTarget = generateTraceTarget( - event, - organization, - { - ...location, - query: { - ...location.query, - groupId: event.groupID, - }, - }, - TraceViewSources.ISSUE_DETAILS - ); - return ( - - {t('One other issue appears in the same trace. ')} - {t('View Full Trace')} - + {t('One other issue appears in the same trace.')} );