diff --git a/src/components/Insights/EndpointNPlusOneInsight/index.tsx b/src/components/Insights/EndpointNPlusOneInsight/index.tsx index d754b6f4c..a243b3fc0 100644 --- a/src/components/Insights/EndpointNPlusOneInsight/index.tsx +++ b/src/components/Insights/EndpointNPlusOneInsight/index.tsx @@ -62,7 +62,7 @@ export const EndpointNPlusOneInsight = ( Check the following locations: - {pageItems.map((span) => { + {pageItems.map((span, i) => { const spanInfo = span.internalSpan || span.clientSpan; const spanName = spanInfo.displayName; const fraction = @@ -108,7 +108,7 @@ export const EndpointNPlusOneInsight = ( spanCodeObjectId={spanInfo.spanCodeObjectId} ticketLink={span.ticketLink} buttonType={"small"} - isHintEnabled={props.isJiraHintEnabled} + isHintEnabled={props.isJiraHintEnabled && i === 0} /> {config.isJaegerEnabled && ( diff --git a/src/components/Insights/EndpointQueryOptimizationInsight/index.tsx b/src/components/Insights/EndpointQueryOptimizationInsight/index.tsx index 2287f09d6..c136c2ff1 100644 --- a/src/components/Insights/EndpointQueryOptimizationInsight/index.tsx +++ b/src/components/Insights/EndpointQueryOptimizationInsight/index.tsx @@ -60,7 +60,7 @@ export const EndpointQueryOptimizationInsight = ( Check the following locations: - {pageItems.map((span) => { + {pageItems.map((span, i) => { const spanInfo = span.spanInfo; const spanName = spanInfo?.displayName; @@ -94,7 +94,7 @@ export const EndpointQueryOptimizationInsight = ( spanCodeObjectId={spanInfo.spanCodeObjectId} ticketLink={span.ticketLink} buttonType={"small"} - isHintEnabled={props.isJiraHintEnabled} + isHintEnabled={props.isJiraHintEnabled && i === 0} /> {config.isJaegerEnabled && ( diff --git a/src/components/Insights/SpanBottleneckInsight/index.tsx b/src/components/Insights/SpanBottleneckInsight/index.tsx index e3a4fa4d1..957e9bba9 100644 --- a/src/components/Insights/SpanBottleneckInsight/index.tsx +++ b/src/components/Insights/SpanBottleneckInsight/index.tsx @@ -36,7 +36,7 @@ export const SpanBottleneckInsight = (props: SpanBottleneckInsightProps) => { - {props.insight.spans.map((span) => { + {props.insight.spans.map((span, i) => { const spanName = span.spanInfo.displayName; const spanCodeObjectId = span.spanInfo.spanCodeObjectId; @@ -72,7 +72,7 @@ export const SpanBottleneckInsight = (props: SpanBottleneckInsightProps) => { spanCodeObjectId={spanCodeObjectId} ticketLink={span.ticketLink} buttonType={"small"} - isHintEnabled={props.isJiraHintEnabled} + isHintEnabled={props.isJiraHintEnabled && i === 0} />