Skip to content

feat(trace-view): Name span links by their link type - #126701

Merged
s1gr1d merged 2 commits into
masterfrom
sig/frontend-serialized-links
Oct 7, 2026
Merged

s1gr1d merged 2 commits into
masterfrom
sig/frontend-serialized-links

Conversation

@s1gr1d

@s1gr1d s1gr1d commented Oct 7, 2026 •

Copy link
Copy Markdown
Member

We can access the attributes of span links now and show a more useful representation of span links.


Example

With multiple links: when a link type appears more often, it's numbered.

Be aware that the very nested attributes.sentry.link.type was only shown since this PR (let us show the attributes):
#125749

One "Before" before (you know, before the span links were unwrapped), there was just the spanId and traceId

Before After
image image

@s1gr1d
s1gr1d requested review from a team as code owners October 7, 2026 12:11
@github-actions github-actions Bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Oct 7, 2026
@s1gr1d
s1gr1d requested a review from nsdeschenes October 7, 2026 12:18
@s1gr1d

s1gr1d commented Oct 7, 2026

Copy link
Copy Markdown
Member Author

bugbot run

@cursor cursor Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Bugbot reviewed your changes and found no new issues!

Comment @cursor review or bugbot run to trigger another review on this PR

Reviewed by Cursor Bugbot for commit 1779093. Configure here.

@nsdeschenes nsdeschenes left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, one small nit to move the new helper function into it's own file inside of trace details.

Comment on lines +93 to +96
/** The type the SDK set on a span link, e.g. `previous_trace` or `cache_origin`. */
export function getSpanLinkType(link: TraceItemResponseLink): string | undefined {
return getAttributeValue(link.attributes ?? [], SEARCH_SENTRY__LINK__TYPE, 'string');
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: Can this be moved out of this file, it's not really related to the overarching goal of this file. Since it's only being used in trace details, we could add in a getSpanLinkType.tsx helper function there.

@s1gr1d
s1gr1d enabled auto-merge (squash) October 7, 2026 12:44
@s1gr1d
s1gr1d merged commit 210fec8 into master Oct 7, 2026
78 checks passed
@s1gr1d
s1gr1d deleted the sig/frontend-serialized-links branch October 7, 2026 12:50

This branch was successfully deployed

1 active deployment
Preview — d73bddc7 Deployed Oct 7, 2026 by vercel[bot]
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