Skip to content

chore(browser)!: Remove legacy profiling option profilesSampleRate - #23220

Open
s1gr1d wants to merge 1 commit into
developfrom
sig/remove-legacy-profiling-browser
Open

chore(browser)!: Remove legacy profiling option profilesSampleRate#23220
s1gr1d wants to merge 1 commit into
developfrom
sig/remove-legacy-profiling-browser

Conversation

@s1gr1d

@s1gr1d s1gr1d commented Aug 10, 2026

Copy link
Copy Markdown
Member

Browser UI profiling now uses only profileSessionSampleRate and profileLifecycle. This PR removes all code that belonged to the previous option.

Removed tests and logic for legacy option.

Part of #23021

@s1gr1d
s1gr1d requested a review from a team as a code owner August 10, 2026 10:43
@s1gr1d
s1gr1d requested review from logaretm and msonnb and removed request for a team August 10, 2026 10:43
@github-actions

Copy link
Copy Markdown
Contributor

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 30.35 kB - -
@sentry/browser - with treeshaking flags 28.52 kB - -
@sentry/browser - with treeshaking flags tracing without tracing 26.85 kB - -
@sentry/browser (incl. Tracing) 48.61 kB - -
@sentry/browser (incl. Tracing + Span Streaming) 48.62 kB - -
@sentry/browser (incl. Tracing, Profiling) 51.51 kB -3.65% -1.95 kB 🔽
@sentry/browser (incl. Tracing, Replay) 88.04 kB - -
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 77.45 kB - -
@sentry/browser (incl. Tracing, Replay with Canvas) 92.77 kB - -
@sentry/browser (incl. Tracing, Replay, Feedback) 105.45 kB - -
@sentry/browser (incl. Feedback) 47.69 kB - -
@sentry/browser (incl. sendFeedback) 35.18 kB - -
@sentry/browser (incl. FeedbackAsync) 40.33 kB - -
@sentry/browser (incl. Metrics) 31.43 kB - -
@sentry/browser (incl. Logs) 31.66 kB - -
@sentry/browser (incl. Metrics & Logs) 32.34 kB - -
@sentry/react 32.14 kB - -
@sentry/react (incl. Tracing) 50.82 kB - -
@sentry/vue 35.45 kB - -
@sentry/vue (incl. Tracing) 50.59 kB - -
@sentry/svelte 30.38 kB - -
CDN Bundle 31.61 kB - -
CDN Bundle (incl. Tracing) 48.92 kB - -
CDN Bundle (incl. Logs, Metrics) 33.84 kB - -
CDN Bundle (incl. Tracing, Logs, Metrics) 50.88 kB - -
CDN Bundle (incl. Replay, Logs, Metrics) 74.38 kB - -
CDN Bundle (incl. Tracing, Replay) 86.49 kB - -
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) 88.4 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback) 92.21 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) 94.18 kB - -
CDN Bundle - uncompressed 93.95 kB - -
CDN Bundle (incl. Tracing) - uncompressed 146.92 kB - -
CDN Bundle (incl. Logs, Metrics) - uncompressed 100.42 kB - -
CDN Bundle (incl. Tracing, Logs, Metrics) - uncompressed 152.78 kB - -
CDN Bundle (incl. Replay, Logs, Metrics) - uncompressed 229.34 kB - -
CDN Bundle (incl. Tracing, Replay) - uncompressed 266.17 kB - -
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) - uncompressed 272.01 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 279.87 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) - uncompressed 285.7 kB - -
@sentry/nextjs (client) 53.4 kB - -
@sentry/sveltekit (client) 49.03 kB - -
@sentry/core/server 65.68 kB - -
@sentry/core/browser 52 kB - -
@sentry/node 118.69 kB - -
@sentry/node/import (ESM hook with diagnostics-channel injection) 0 B added added
@sentry/node - without tracing 82.82 kB +0.01% +1 B 🔺
@sentry/aws-serverless 92.12 kB +0.01% +1 B 🔺
@sentry/cloudflare (withSentry) - minified 214.85 kB - -
@sentry/cloudflare (withSentry) 530.47 kB - -

View base workflow run

Comment on lines -62 to -64
// fixme: figure out why profiler_id is set on feedback and not on pageload transaction
// todo: rename to `profiler_id`
expect(feedbackEvent.contexts?.profile?.profile_id).toMatch(/^[a-f\d]{32}$/);

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

@andreiborza As you added this comment: this can be removed now, right? I added an additional check so we know it's on both the feedback event and the pageload.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Yep, sounds good.

Comment thread MIGRATION.md

@msonnb msonnb Aug 10, 2026

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

iirc @nicohrubec mentioned that we should add new breaking changes to docs/migration/v11-end-state.md instead of this one

@nicohrubec nicohrubec Aug 10, 2026

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

jep, so MIGRATION.md should stay up to date with our latest release

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.

4 participants