From 1634a8d8f99074eaa6755facca9ad7f54ebe3b04 Mon Sep 17 00:00:00 2001 From: Scott Cooper Date: Wed, 8 Apr 2026 16:51:08 -0700 Subject: [PATCH] feat(traces): Use new stack trace in trace drawer MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Matches the pattern from groupEventDetailsContent — gate on `issue-details-new-stack-trace` flag and skip native platforms. Co-Authored-By: Claude Opus 4.6 --- .../details/transaction/sections/entries.tsx | 24 +++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) diff --git a/static/app/views/performance/newTraceDetails/traceDrawer/details/transaction/sections/entries.tsx b/static/app/views/performance/newTraceDetails/traceDrawer/details/transaction/sections/entries.tsx index 93d0b5c5c62e5a..05010d273602fe 100644 --- a/static/app/views/performance/newTraceDetails/traceDrawer/details/transaction/sections/entries.tsx +++ b/static/app/views/performance/newTraceDetails/traceDrawer/details/transaction/sections/entries.tsx @@ -8,6 +8,7 @@ import {Message} from 'sentry/components/events/interfaces/message'; import {StackTrace} from 'sentry/components/events/interfaces/stackTrace'; import {Template} from 'sentry/components/events/interfaces/template'; import {Threads} from 'sentry/components/events/interfaces/threads'; +import {IssueStackTrace} from 'sentry/components/stackTrace/issueStackTrace'; import {t} from 'sentry/locale'; import { EntryType, @@ -16,6 +17,8 @@ import { type EventTransaction, } from 'sentry/types/event'; import type {Project} from 'sentry/types/project'; +import {isNativePlatform} from 'sentry/utils/platform'; +import {useOrganization} from 'sentry/utils/useOrganization'; import {InterimSection} from 'sentry/views/issueDetails/streamline/interimSection'; type EventEntryContentProps = { @@ -25,9 +28,20 @@ type EventEntryContentProps = { }; function EventEntryContent({entry, projectSlug, event}: EventEntryContentProps) { + const organization = useOrganization(); + const shouldUseNewStackTrace = + organization.features.includes('issue-details-new-stack-trace') && + !isNativePlatform(event.platform); + switch (entry.type) { case EntryType.EXCEPTION: - return ( + return shouldUseNewStackTrace ? ( + + ) : ( ; case EntryType.STACKTRACE: - return ( + return shouldUseNewStackTrace ? ( + + ) : (