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(core)!: Stop setting user in requestDataIntegration #14898

Merged
merged 2 commits into from
Jan 7, 2025

Conversation

mydea
Copy link
Member

@mydea mydea commented Jan 3, 2025

This was an express-specific, rather undocumented behavior, and also conflicted with our privacy-by-default stance.

Starting in v9, you'll need to manually call Sentry.setUser() e.g. in a middleware to set the user on Sentry events.

Docs for this are already pending: getsentry/sentry-docs#12224

Extracted this out of #14806

@mydea mydea self-assigned this Jan 3, 2025
Copy link
Contributor

github-actions bot commented Jan 3, 2025

size-limit report 📦

Path Size % Change Change
@sentry/browser 22.78 KB - -
@sentry/browser - with treeshaking flags 21.54 KB - -
@sentry/browser (incl. Tracing) 35.4 KB - -
@sentry/browser (incl. Tracing, Replay) 72.12 KB - -
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 62.66 KB - -
@sentry/browser (incl. Tracing, Replay with Canvas) 76.38 KB - -
@sentry/browser (incl. Tracing, Replay, Feedback) 88.4 KB - -
@sentry/browser (incl. Feedback) 39.08 KB - -
@sentry/browser (incl. sendFeedback) 27.44 KB - -
@sentry/browser (incl. FeedbackAsync) 32.23 KB - -
@sentry/react 25.55 KB - -
@sentry/react (incl. Tracing) 38.2 KB - -
@sentry/vue 27.1 KB - -
@sentry/vue (incl. Tracing) 37.26 KB - -
@sentry/svelte 22.95 KB - -
CDN Bundle 24.14 KB - -
CDN Bundle (incl. Tracing) 35.72 KB - -
CDN Bundle (incl. Tracing, Replay) 70.28 KB - -
CDN Bundle (incl. Tracing, Replay, Feedback) 75.48 KB - -
CDN Bundle - uncompressed 70.56 KB - -
CDN Bundle (incl. Tracing) - uncompressed 106.13 KB - -
CDN Bundle (incl. Tracing, Replay) - uncompressed 217.01 KB - -
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 229.76 KB - -
@sentry/nextjs (client) 38.3 KB - -
@sentry/sveltekit (client) 35.93 KB - -
@sentry/node 161.5 KB -0.12% -186 B 🔽
@sentry/node - without tracing 97.31 KB -0.18% -177 B 🔽
@sentry/aws-serverless 127.15 KB -0.15% -188 B 🔽

View base workflow run

Copy link
Member

@chargome chargome left a comment

Choose a reason for hiding this comment

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

Looks good! My PR for removing deprecated request data methods messed this one up, sorry 😅

@mydea mydea force-pushed the fn/no-request-user branch from c9b05b2 to 0e88cce Compare January 7, 2025 08:45
mydea added 2 commits January 7, 2025 13:20
This was an express-specific, rather undocumented behavior, and also conflicted with our privacy-by-default stance.

Starting in v9, you'll need to manually call `Sentry.setUser()` e.g. in a middleware to set the user on Sentry events.

Docs for this are already pending: getsentry/sentry-docs#12224
@mydea mydea force-pushed the fn/no-request-user branch from 0e88cce to 9ab9e55 Compare January 7, 2025 12:21
@mydea mydea merged commit c6a338f into develop Jan 7, 2025
152 checks passed
@mydea mydea deleted the fn/no-request-user branch January 7, 2025 13:45
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