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 @@ -354,10 +354,45 @@ function AIDetectedSpanEvidence({
projectSlug,
}: SpanEvidenceKeyValueListProps) {
const evidenceData = event?.occurrence?.evidenceData ?? {};
const transactionName = evidenceData.transaction ?? event.title;

const transactionSummaryLocation = transactionSummaryRouteWithQuery({
organization,
projectID: event.projectID,
transaction: transactionName,
query: {},
});

const traceSlug = event.contexts?.trace?.trace_id ?? '';

const eventDetailsLocation = generateLinkToEventInTraceView({
traceSlug,
eventId: event.eventID,
timestamp: event.endTimestamp ?? '',
location,
organization,
});

const actionButton = projectSlug ? (
<LinkButton size="xs" to={eventDetailsLocation}>
{t('View Full Trace')}
</LinkButton>
) : undefined;

const transactionRow = makeRow(
t('Transaction'),
<pre>
<Tooltip title={t('View Transaction Summary')} skipWrapper>
<Link to={transactionSummaryLocation}>{transactionName}</Link>
</Tooltip>
</pre>,
actionButton
);

return (
<PresortedKeyValueList
data={[
makeTransactionNameRow(event, organization, location, projectSlug),
transactionRow,
makeRow(t('Explanation'), evidenceData.explanation),
makeRow(t('Impact'), evidenceData.impact),
makeRow(t('Evidence'), evidenceData.evidence),
Expand Down
Loading