Skip to content

fix(vue): Ensure root component render span always ends #16488

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

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from

Conversation

Lms24
Copy link
Member

@Lms24 Lms24 commented Jun 5, 2025

This PR fixes a bug discovered in #16486 (comment) where the root component span would not end correctly if trackComponents was false.

Also added a comment to explain the purpose of the root component ui.vue.render span. We might want to look into renaming or removing this span in the future but for now, let's fix the behaviour.

@Lms24 Lms24 self-assigned this Jun 5, 2025
@Lms24 Lms24 requested a review from s1gr1d June 5, 2025 14:01
@Lms24 Lms24 force-pushed the lms/fix-vue-root-component-span-ending branch from 3f505fe to 2732497 Compare June 5, 2025 14:04
Copy link
Contributor

github-actions bot commented Jun 5, 2025

size-limit report 📦

⚠️ Warning: Base artifact is not the latest one, because the latest workflow run is not done yet. This may lead to incorrect results. Try to re-run all tests to get up to date results.

Path Size % Change Change
@sentry/browser 23.99 kB - -
@sentry/browser - with treeshaking flags 23.76 kB - -
@sentry/browser (incl. Tracing) 38.36 kB - -
@sentry/browser (incl. Tracing, Replay) 76.47 kB - -
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 69.57 kB - -
@sentry/browser (incl. Tracing, Replay with Canvas) 81.23 kB - -
@sentry/browser (incl. Tracing, Replay, Feedback) 93.31 kB - -
@sentry/browser (incl. Feedback) 40.73 kB - -
@sentry/browser (incl. sendFeedback) 28.7 kB - -
@sentry/browser (incl. FeedbackAsync) 33.59 kB - -
@sentry/react 25.76 kB - -
@sentry/react (incl. Tracing) 40.35 kB - -
@sentry/vue 28.36 kB +0.03% +8 B 🔺
@sentry/vue (incl. Tracing) 40.22 kB +0.04% +13 B 🔺
@sentry/svelte 24.01 kB - -
CDN Bundle 25.48 kB - -
CDN Bundle (incl. Tracing) 38.53 kB - -
CDN Bundle (incl. Tracing, Replay) 74.41 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback) 79.86 kB - -
CDN Bundle - uncompressed 74.41 kB - -
CDN Bundle (incl. Tracing) - uncompressed 114.1 kB - -
CDN Bundle (incl. Tracing, Replay) - uncompressed 228.07 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 240.89 kB - -
@sentry/nextjs (client) 42.01 kB - -
@sentry/sveltekit (client) 38.84 kB - -
@sentry/node 150.28 kB - -
@sentry/node - without tracing 98.33 kB - -
@sentry/aws-serverless 124.1 kB - -

View base workflow run

it.each([true, false])(
'should finish root component span on timer after component spans end, if trackComponents is %s',
() => {
const mixins = createTracingMixins({ trackComponents: false, timeout: 1000 });
Copy link
Member

Choose a reason for hiding this comment

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

M: Don't forget to include the variable from the test here at trackComponents

Copy link
Member Author

Choose a reason for hiding this comment

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

oh damn, good catch, thanks!

@Lms24 Lms24 requested a review from s1gr1d June 6, 2025 11:46
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