diff --git a/static/app/views/performance/newTraceDetails/traceDrawer/details/span/index.tsx b/static/app/views/performance/newTraceDetails/traceDrawer/details/span/index.tsx index 16888ecef2f4eb..10aa2256a9a1f1 100644 --- a/static/app/views/performance/newTraceDetails/traceDrawer/details/span/index.tsx +++ b/static/app/views/performance/newTraceDetails/traceDrawer/details/span/index.tsx @@ -16,7 +16,7 @@ import LoadingIndicator from 'sentry/components/loadingIndicator'; import QuestionTooltip from 'sentry/components/questionTooltip'; import {t} from 'sentry/locale'; import {space} from 'sentry/styles/space'; -import type {EventTransaction} from 'sentry/types/event'; +import {EntryType, type EventTransaction} from 'sentry/types/event'; import type {NewQuery, Organization} from 'sentry/types/organization'; import type {Project} from 'sentry/types/project'; import {defined} from 'sentry/utils'; @@ -409,6 +409,10 @@ function EAPSpanNodeDetails({ const profileId = typeof profileMeta === 'string' ? profileMeta : profileMeta.profiler_id; + const eventHasRequestEntry = eventTransaction?.entries.some( + entry => entry.type === EntryType.REQUEST + ); + return ( - {isTransaction ? ( + {isTransaction && eventHasRequestEntry ? (