Skip to content

ref(browser): Streamline pageload span creation and scope handling #11679

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 2 commits into from
Apr 18, 2024

Conversation

Lms24
Copy link
Member

@Lms24 Lms24 commented Apr 18, 2024

As discussed with @lforst yesterday, we can streamline our pageload span creation logic now that we actually want to keep the propagation context on the scope after the transaction finished (see #11599). Previously, we'd fork a new scope for the pageload span but IMHO (and according to all our tests) this is no longer necessary.

ref #11599

@@ -714,6 +714,45 @@ describe('browserTracingIntegration', () => {
},
});
});

it("saves the span's negative sampling decision and its DSC on the propagationContext when the span finishes", () => {
Copy link
Member Author

Choose a reason for hiding this comment

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

just thought I'd throw in a semi-related test that was previously missing

Copy link
Contributor

github-actions bot commented Apr 18, 2024

size-limit report 📦

Path Size
@sentry/browser 21.67 KB (0%)
@sentry/browser (incl. Tracing) 31.4 KB (-0.18% 🔽)
@sentry/browser (incl. Tracing, Replay) 66.73 KB (-0.09% 🔽)
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 60.14 KB (-0.09% 🔽)
@sentry/browser (incl. Tracing, Replay with Canvas) 70.57 KB (-0.08% 🔽)
@sentry/browser (incl. Tracing, Replay, Feedback) 80.44 KB (-0.08% 🔽)
@sentry/browser (incl. Feedback) 35.25 KB (0%)
@sentry/browser (incl. Feedback, Feedback Modal) 35.25 KB (0%)
@sentry/browser (incl. Feedback, Feedback Modal, Feedback Screenshot) 37.28 KB (0%)
@sentry/browser (incl. sendFeedback) 26.46 KB (0%)
@sentry/react 24.35 KB (0%)
@sentry/react (incl. Tracing) 34.31 KB (-0.18% 🔽)
@sentry/vue 25.2 KB (0%)
@sentry/vue (incl. Tracing) 33.12 KB (-0.19% 🔽)
@sentry/svelte 21.79 KB (0%)
CDN Bundle 24.03 KB (0%)
CDN Bundle (incl. Tracing) 32.71 KB (-0.16% 🔽)
CDN Bundle (incl. Tracing, Replay) 66.37 KB (-0.04% 🔽)
CDN Bundle (incl. Tracing, Replay, Feedback) 82.57 KB (-0.04% 🔽)
CDN Bundle - uncompressed 70.86 KB (0%)
CDN Bundle (incl. Tracing) - uncompressed 97.51 KB (-0.09% 🔽)
CDN Bundle (incl. Tracing, Replay) - uncompressed 207.17 KB (-0.05% 🔽)
@sentry/nextjs (client) 33.64 KB (-0.17% 🔽)
@sentry/sveltekit (client) 31.9 KB (-0.19% 🔽)
@sentry/node 155.86 KB (0%)

Copy link
Contributor

@lforst lforst left a comment

Choose a reason for hiding this comment

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

Very nice, thank you! Much cleaner 😌

@Lms24 Lms24 enabled auto-merge (squash) April 18, 2024 11:21
@Lms24 Lms24 merged commit eb2f454 into develop Apr 18, 2024
96 checks passed
@Lms24 Lms24 deleted the lms/ref-browser-streamline-pageload-span-creation branch April 18, 2024 11:30
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.

3 participants