Skip to content

fix(events): Don't link to trace explorer when trace id is missing#110670

Merged
mrduncan merged 2 commits intomasterfrom
mrduncan/fix-trace-links
Mar 13, 2026
Merged

fix(events): Don't link to trace explorer when trace id is missing#110670
mrduncan merged 2 commits intomasterfrom
mrduncan/fix-trace-links

Conversation

@mrduncan
Copy link
Member

@mrduncan mrduncan commented Mar 13, 2026

When an event has no trace id, the trace column in the events table still rendered a clickable link navigating to the trace explorer with a null trace id. Now the trace value renders as plain text without a link when no trace id is present.

Also fix generateTraceLink converting null/undefined to the string "null"/"undefined" via template literal, bypassing the empty check.

Refs ISWF-2234

Before: https://linear.app/getsentry/issue/ISWF-2234/dont-link-to-trace-explorer-if-no-trace-id-is-present

After:
Screenshot 2026-03-13 at 12 20 57 PM

When an event has no trace id, the trace column in the events table
still rendered a clickable link navigating to the trace explorer with
a null trace id. Now the trace value renders as plain text without a
link when no trace id is present.

Also fix generateTraceLink converting null/undefined to the string
"null"/"undefined" via template literal, bypassing the empty check.

Refs LINEAR-ISWF-2234
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@linear-code
Copy link

linear-code bot commented Mar 13, 2026

@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Mar 13, 2026
Simplify the trace link logic by guarding on dataRow.trace before
calling generateTraceLink, rather than inspecting the target shape.
Remove trace from the second mock event so the test fixture naturally
covers both with-trace and without-trace cases.

Refs LINEAR-ISWF-2234
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@mrduncan mrduncan marked this pull request as ready for review March 13, 2026 20:18
@mrduncan mrduncan requested a review from a team as a code owner March 13, 2026 20:18
@mrduncan mrduncan requested a review from a team March 13, 2026 20:18
@mrduncan mrduncan merged commit 1e89f7b into master Mar 13, 2026
65 checks passed
@mrduncan mrduncan deleted the mrduncan/fix-trace-links branch March 13, 2026 20:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Frontend Automatically applied to PRs that change frontend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants