Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -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 (
<TraceDrawerComponents.DetailContainer>
<SpanNodeDetailHeader
Expand Down Expand Up @@ -482,7 +486,7 @@ function EAPSpanNodeDetails({
/>
</FoldSection>

{isTransaction ? (
{isTransaction && eventHasRequestEntry ? (
<FoldSection
sectionKey={SectionKey.CONTEXTS}
title={
Expand Down
Loading