Skip to content
Merged
Show file tree
Hide file tree
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
4 changes: 2 additions & 2 deletions src/components/Insights/EndpointNPlusOneInsight/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export const EndpointNPlusOneInsight = (
<s.ContentContainer>
<Description>Check the following locations:</Description>
<s.SpanList>
{pageItems.map((span) => {
{pageItems.map((span, i) => {
const spanInfo = span.internalSpan || span.clientSpan;
const spanName = spanInfo.displayName;
const fraction =
Expand Down Expand Up @@ -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 && (
<Tooltip title={"Trace"}>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export const EndpointQueryOptimizationInsight = (
<s.ContentContainer>
<Description>Check the following locations:</Description>
<s.SpanList>
{pageItems.map((span) => {
{pageItems.map((span, i) => {
const spanInfo = span.spanInfo;
const spanName = spanInfo?.displayName;

Expand Down Expand Up @@ -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 && (
<Tooltip title={"Trace"}>
Expand Down
4 changes: 2 additions & 2 deletions src/components/Insights/SpanBottleneckInsight/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export const SpanBottleneckInsight = (props: SpanBottleneckInsightProps) => {
</Description>
<s.Container>
<s.SpanList>
{props.insight.spans.map((span) => {
{props.insight.spans.map((span, i) => {
const spanName = span.spanInfo.displayName;
const spanCodeObjectId = span.spanInfo.spanCodeObjectId;

Expand Down Expand Up @@ -72,7 +72,7 @@ export const SpanBottleneckInsight = (props: SpanBottleneckInsightProps) => {
spanCodeObjectId={spanCodeObjectId}
ticketLink={span.ticketLink}
buttonType={"small"}
isHintEnabled={props.isJiraHintEnabled}
isHintEnabled={props.isJiraHintEnabled && i === 0}
/>
</s.ButtonsContainer>
</s.Span>
Expand Down