Skip to content

ref(browser): Temporarily add sentry.previous_trace span attribute #15957

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Apr 2, 2025

Conversation

Lms24
Copy link
Member

@Lms24 Lms24 commented Apr 2, 2025

EAP currently doesn't support storing span links. This is on the EAP team's radar but will only be tackled in the future. For now, to unblock our trace linking project, this PR converts the previous trace span link into a span attribute and adds it to the root span (just like the link). We can use this in the product to check for a span link and also query the next trace by this attribute.

Initially, the idea was to convert the link in Relay to a span attribute but this sparked a bunch of convos around how to handle "internal" attributes and if we should keep such temporary things in Relay. Nothing changes about this with the code living in the SDK but it's more a one-off and easier for us to control so after disussing this with @mydea we settled on doing it in the SDK but also comitting to remove it once we can.

@Lms24 Lms24 self-assigned this Apr 2, 2025
@Lms24 Lms24 requested review from mydea and s1gr1d April 2, 2025 10:36
@Lms24 Lms24 marked this pull request as ready for review April 2, 2025 10:37
Copy link
Contributor

github-actions bot commented Apr 2, 2025

size-limit report 📦

Path Size % Change Change
@sentry/browser 23.2 KB - -
@sentry/browser - with treeshaking flags 23.02 KB - -
@sentry/browser (incl. Tracing) 36.83 KB +0.09% +33 B 🔺
@sentry/browser (incl. Tracing, Replay) 73.99 KB +0.05% +36 B 🔺
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 67.39 KB +0.06% +41 B 🔺
@sentry/browser (incl. Tracing, Replay with Canvas) 78.66 KB +0.05% +39 B 🔺
@sentry/browser (incl. Tracing, Replay, Feedback) 91.22 KB +0.04% +34 B 🔺
@sentry/browser (incl. Feedback) 40.33 KB - -
@sentry/browser (incl. sendFeedback) 27.83 KB - -
@sentry/browser (incl. FeedbackAsync) 32.63 KB - -
@sentry/react 25 KB - -
@sentry/react (incl. Tracing) 38.75 KB +0.08% +30 B 🔺
@sentry/vue 27.41 KB - -
@sentry/vue (incl. Tracing) 38.55 KB +0.09% +32 B 🔺
@sentry/svelte 23.23 KB - -
CDN Bundle 24.44 KB - -
CDN Bundle (incl. Tracing) 36.85 KB +0.08% +30 B 🔺
CDN Bundle (incl. Tracing, Replay) 71.87 KB +0.06% +38 B 🔺
CDN Bundle (incl. Tracing, Replay, Feedback) 77.07 KB +0.06% +41 B 🔺
CDN Bundle - uncompressed 71.24 KB - -
CDN Bundle (incl. Tracing) - uncompressed 108.94 KB +0.1% +101 B 🔺
CDN Bundle (incl. Tracing, Replay) - uncompressed 220.23 KB +0.05% +101 B 🔺
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 232.8 KB +0.05% +101 B 🔺
@sentry/nextjs (client) 40.05 KB +0.08% +29 B 🔺
@sentry/sveltekit (client) 37.26 KB +0.09% +32 B 🔺
@sentry/node 142.88 KB -0.01% -1 B 🔽
@sentry/node - without tracing 96.08 KB - -
@sentry/aws-serverless 120.43 KB - -

View base workflow run

@Lms24 Lms24 force-pushed the lms/ref-browser-trace-links-attribute branch from 723f3cd to 9d54797 Compare April 2, 2025 12:02
@Lms24 Lms24 force-pushed the lms/ref-browser-trace-links-attribute branch from c8faff7 to 643d712 Compare April 2, 2025 16:14
@Lms24 Lms24 enabled auto-merge (squash) April 2, 2025 16:15
@Lms24 Lms24 merged commit 4661f4d into develop Apr 2, 2025
118 of 119 checks passed
@Lms24 Lms24 deleted the lms/ref-browser-trace-links-attribute branch April 2, 2025 16:23
onurtemizkan pushed a commit that referenced this pull request Apr 3, 2025
…15957)

Temporarily add a span attribute for the previous trace to get trace links working in the EAP-based trace view. This needs to be removed once EAP properly supports span links.
Lms24 added a commit to getsentry/sentry that referenced this pull request Apr 4, 2025
Bumping the SDK to the latest version because
[9.11.0](https://github.com./getsentry/sentry-javascript/releases/tag/9.11.0)
includes a
[change](getsentry/sentry-javascript#15957) for
trace links I want to dog-food.
andrewshie-sentry pushed a commit to getsentry/sentry that referenced this pull request Apr 8, 2025
Bumping the SDK to the latest version because
[9.11.0](https://github.com./getsentry/sentry-javascript/releases/tag/9.11.0)
includes a
[change](getsentry/sentry-javascript#15957) for
trace links I want to dog-food.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants