Repository navigation
feat(trace-view): Name span links by their link type - #126701
Merged
Merged
Conversation
Member
Author
|
bugbot run |
Contributor
There was a problem hiding this comment.
✅ 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
approved these changes
Oct 7, 2026
nsdeschenes
left a comment
Contributor
There was a problem hiding this comment.
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'); | ||
| } |
Contributor
There was a problem hiding this comment.
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.
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
We can access the attributes of span links now and show a more useful representation of span links.
sentry.link.type(e.g.previous_trace), notspan_link_1. Untyped links show aslink, and repeated types get a counter.getSpanLinkTypehelperExample
With multiple links: when a link type appears more often, it's numbered.
Be aware that the very nested
attributes.sentry.link.typewas 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
spanIdandtraceId