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(sveltekit): Add custom browserTracingIntegration() #10450

Merged
merged 5 commits into from
Feb 2, 2024

Conversation

Lms24
Copy link
Member

@Lms24 Lms24 commented Feb 1, 2024

This PR deprecates SvelteKit's BrowserTracing integration in favour of the new browserTracingIntegration functional integration. The new integration now also directly initializes the routing instrumentation.

In comparison to the old routing instrumentation, there are no significant changes other than making more use of attributes instead of tags and top-level origin.

Added unit tests for behavioural checks. E2E tests also test the new integration implicitly.

ref #10387

Copy link
Contributor

github-actions bot commented Feb 1, 2024

size-limit report 📦

Path Size
@sentry/browser (incl. Tracing, Replay, Feedback) - Webpack (gzipped) 78.15 KB (0%)
@sentry/browser (incl. Tracing, Replay) - Webpack (gzipped) 69.38 KB (0%)
@sentry/browser (incl. Tracing, Replay with Canvas) - Webpack (gzipped) 73.3 KB (0%)
@sentry/browser (incl. Tracing, Replay) - Webpack with treeshaking flags (gzipped) 62.99 KB (0%)
@sentry/browser (incl. Tracing) - Webpack (gzipped) 33.38 KB (0%)
@sentry/browser (incl. browserTracingIntegration) - Webpack (gzipped) 33.25 KB (0%)
@sentry/browser (incl. Feedback) - Webpack (gzipped) 31.33 KB (0%)
@sentry/browser (incl. sendFeedback) - Webpack (gzipped) 31.34 KB (0%)
@sentry/browser - Webpack (gzipped) 22.6 KB (0%)
@sentry/browser (incl. Tracing, Replay, Feedback) - ES6 CDN Bundle (gzipped) 76.11 KB (0%)
@sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (gzipped) 67.66 KB (0%)
@sentry/browser (incl. Tracing) - ES6 CDN Bundle (gzipped) 33.5 KB (0%)
@sentry/browser - ES6 CDN Bundle (gzipped) 24.66 KB (0%)
@sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (minified & uncompressed) 213.5 KB (0%)
@sentry/browser (incl. Tracing) - ES6 CDN Bundle (minified & uncompressed) 101.49 KB (0%)
@sentry/browser - ES6 CDN Bundle (minified & uncompressed) 74.01 KB (0%)
@sentry/browser (incl. Tracing) - ES5 CDN Bundle (gzipped) 36.63 KB (0%)
@sentry/react (incl. Tracing, Replay) - Webpack (gzipped) 69.73 KB (0%)
@sentry/react - Webpack (gzipped) 22.63 KB (0%)
@sentry/nextjs Client (incl. Tracing, Replay) - Webpack (gzipped) 86.5 KB (0%)
@sentry/nextjs Client - Webpack (gzipped) 50.8 KB (0%)
@sentry-internal/feedback - Webpack (gzipped) 17.21 KB (0%)

@Lms24 Lms24 requested review from mydea and lforst February 2, 2024 11:03
@Lms24 Lms24 marked this pull request as ready for review February 2, 2024 11:03
Lms24 added 4 commits February 2, 2024 12:08

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
@Lms24 Lms24 force-pushed the lms/feat-sveltekit-browsertracing branch from 51bca08 to 97896f9 Compare February 2, 2024 11:08
}),
};

return {
Copy link
Member

Choose a reason for hiding this comment

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

nice ❤️ pretty clean!

@Lms24 Lms24 force-pushed the lms/feat-sveltekit-browsertracing branch from e555cd1 to 230e1f0 Compare February 2, 2024 11:35
@Lms24 Lms24 merged commit 0e52c07 into develop Feb 2, 2024
@Lms24 Lms24 deleted the lms/feat-sveltekit-browsertracing branch February 2, 2024 12:46
onurtemizkan pushed a commit that referenced this pull request Feb 4, 2024
Deprecates SvelteKit's `BrowserTracing` integration in favour of
the new `browserTracingIntegration` functional integration. The new
integration now also directly initializes the routing instrumentation.
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.

None yet

2 participants