diff --git a/static/app/views/performance/newTraceDetails/traceDrawer/details/span/eapSections/description.tsx b/static/app/views/performance/newTraceDetails/traceDrawer/details/span/eapSections/description.tsx index b5d1671d2a2c68..aca7bfbd7c23a8 100644 --- a/static/app/views/performance/newTraceDetails/traceDrawer/details/span/eapSections/description.tsx +++ b/static/app/views/performance/newTraceDetails/traceDrawer/details/span/eapSections/description.tsx @@ -100,10 +100,11 @@ export function SpanDescription({ return formatter.toString(dbQueryText ?? span.description ?? ''); }, [span.description, resolvedModule, dbSystem, dbQueryText]); - const exploreAttributeName = shouldUseOTelFriendlyUI + const exploreUsingName = shouldUseOTelFriendlyUI && span.name !== span.op; + const exploreAttributeName = exploreUsingName ? SpanFields.NAME : SpanFields.SPAN_DESCRIPTION; - const exploreAttributeValue = shouldUseOTelFriendlyUI ? span.name : span.description; + const exploreAttributeValue = exploreUsingName ? span.name : span.description; const actions = exploreAttributeValue ? ( - ) : shouldUseOTelFriendlyUI && span.name ? ( + ) : shouldUseOTelFriendlyUI && span.name && span.name !== span.op ? ( {span.name} {ellipsize(props.node.value.name, 100)}