Skip to content
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

feat(svelte)!: Disable component update tracking by default #15265

Merged
merged 6 commits into from
Feb 4, 2025

Conversation

Lms24
Copy link
Member

@Lms24 Lms24 commented Feb 3, 2025

This PR introduces a behaviour-breaking change to the Svelte SDK's component tracking feature: Due to a change in the lifecycle of Svelte components in Svelte 5 (using Rune mode), our SDK can no longer leverage the (before|after)Update hooks to track component update spans.

In v8, we guarded this feature but didn't change the default behaviour via #15262.

For v9, I propose we disable update tracking by default, for the reasons outlined in #15259 (comment). (TLDR is: it would take significant effort to make this work for Svelte 5 Rune mode for a feature that's very rarely used). We can revisit this of course if we decide to emphasize component spans in the product.

ref #15259

@Lms24 Lms24 self-assigned this Feb 3, 2025
@Lms24 Lms24 marked this pull request as ready for review February 3, 2025 12:58
@Lms24 Lms24 requested review from lforst and s1gr1d February 3, 2025 12:59
Copy link

codecov bot commented Feb 3, 2025

❌ 1 Tests Failed:

Tests completed Failed Passed Skipped
587 1 586 292
View the full list of 1 ❄️ flaky tests
sdk.test.ts SDK-internal behaviorInjects fetch proxy script for SvelteKit<2.16.0

Flake rate in main: 25.00% (Passed 6 times, Failed 2 times)

Stack Traces | 0.138s run time
sdk.test.ts:4:3 Injects fetch proxy script for SvelteKit<2.16.0

To view more test analytics, go to the Test Analytics Dashboard
📢 Thoughts on this report? Let us know!

@Lms24 Lms24 merged commit bb7237a into develop Feb 4, 2025
145 checks passed
@Lms24 Lms24 deleted the lms/feat-svelte-disable-comp-updates branch February 4, 2025 11:00
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