René's URL Explorer Experiment


Title: fix(flask): Set user data on scope at request start by ericapisani · Pull Request #6566 · getsentry/sentry-python · GitHub

Open Graph Title: fix(flask): Set user data on scope at request start by ericapisani · Pull Request #6566 · getsentry/sentry-python

X Title: fix(flask): Set user data on scope at request start by ericapisani · Pull Request #6566 · getsentry/sentry-python

Description: The official Python SDK for Sentry.io. Contribute to getsentry/sentry-python development by creating an account on GitHub.

Open Graph Description: Previously, Flask user data (id, email, username) was only set via the _add_user_to_event event processor, which runs at event capture time. Under span streaming, spans are sent before an error eve...

X Description: Previously, Flask user data (id, email, username) was only set via the _add_user_to_event event processor, which runs at event capture time. Under span streaming, spans are sent before an error eve...

Opengraph URL: https://github.com/getsentry/sentry-python/pull/6566

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:ddc9066d-27b4-e129-d032-37741333ec70
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idDE4E:889E2:4D533A:67D749:6B00A653
html-safe-nonce8a75d8d5d0abaab29bb527aa021fbf358a06e58651b3683d0316c4f144c8a3e6
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJERTRFOjg4OUUyOjRENTMzQTo2N0Q3NDk6NkIwMEE2NTMiLCJ2aXNpdG9yX2lkIjoiNjEwNjA3Mzc3NTgwMTkzNTQ0MyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacb7fe2aa4743281e902c790e34abf37b5e7f4d62bfffc8db4ee8ebc95233dd35d
hovercard-subject-tagpull_request:3857568275
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/getsentry/sentry-python/6566/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/5fc420717c9efcbc80dd1bf59635aba626b2b5c2ddb7f11d0064c5e214f3fb61/getsentry/sentry-python/pull/6566
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/5fc420717c9efcbc80dd1bf59635aba626b2b5c2ddb7f11d0064c5e214f3fb61/getsentry/sentry-python/pull/6566
og:image:altPreviously, Flask user data (id, email, username) was only set via the _add_user_to_event event processor, which runs at event capture time. Under span streaming, spans are sent before an error eve...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameericapisani
hostnamegithub.com
expected-hostnamegithub.com
None455b493e3402a3a3a06beac5d20bb7db3da060808b220aa48d6a7eca7c59863a
turbo-cache-controlno-cache
go-importgithub.com/getsentry/sentry-python git https://github.com/getsentry/sentry-python.git
octolytics-dimension-user_id1396951
octolytics-dimension-user_logingetsentry
octolytics-dimension-repository_id137814779
octolytics-dimension-repository_nwogetsentry/sentry-python
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id137814779
octolytics-dimension-repository_network_root_nwogetsentry/sentry-python
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release2f575159976167242d488c0b062eb355c4e198b7
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-namepull-requests

Links:

Skip to contenthttps://github.com/getsentry/sentry-python/pull/6566#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgetsentry%2Fsentry-python%2Fpull%2F6566
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgetsentry%2Fsentry-python%2Fpull%2F6566
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=getsentry%2Fsentry-python
Reloadhttps://github.com/getsentry/sentry-python/pull/6566
Reloadhttps://github.com/getsentry/sentry-python/pull/6566
Reloadhttps://github.com/getsentry/sentry-python/pull/6566
getsentryhttps://github.com/getsentry
sentry-pythonhttps://github.com/getsentry/sentry-python
Codehttps://github.com/getsentry/sentry-python
Issues345 (345)https://github.com/getsentry/sentry-python/issues
Pull requests42 (42)https://github.com/getsentry/sentry-python/pulls
Discussionshttps://github.com/getsentry/sentry-python/discussions
Actionshttps://github.com/getsentry/sentry-python/actions
Security and quality2 (2)https://github.com/getsentry/sentry-python/security
Insightshttps://github.com/getsentry/sentry-python/insights
https://github.com/getsentry/sentry-python
ericapisanihttps://github.com/ericapisani
masterhttps://github.com/getsentry/sentry-python/tree/master
py-2528-set-user-data-on-flaskhttps://github.com/getsentry/sentry-python/tree/py-2528-set-user-data-on-flask
Conversationhttps://github.com/getsentry/sentry-python/pull/6566
Commits5 (5)https://github.com/getsentry/sentry-python/pull/6566/commits
Checkshttps://github.com/getsentry/sentry-python/pull/6566/checks
Files changedhttps://github.com/getsentry/sentry-python/pull/6566/files
fix(flask): Set user data on scope at request starthttps://github.com/getsentry/sentry-python/pull/6566#top
ericapisanihttps://github.com/ericapisani
masterhttps://github.com/getsentry/sentry-python/tree/master
py-2528-set-user-data-on-flaskhttps://github.com/getsentry/sentry-python/tree/py-2528-set-user-data-on-flask
https://github.com/ericapisani
ericapisanihttps://github.com/ericapisani
Jun 12, 2026https://github.com/getsentry/sentry-python/pull/6566#issue-4652642967
GH-6565https://github.com/getsentry/sentry-python/issues/6565
Please reload this pagehttps://github.com/getsentry/sentry-python/pull/6566
ericapisanihttps://github.com/ericapisani
June 12, 2026 17:06https://github.com/getsentry/sentry-python/pull/6566#commits-pushed-651885f
https://github.com/ericapisani
fix(flask): Set user data on scope at request starthttps://github.com/getsentry/sentry-python/pull/6566/commits/651885fee7ee737a3d02d97a9f9c4c5e14c14d86
651885fhttps://github.com/getsentry/sentry-python/pull/6566/commits/651885fee7ee737a3d02d97a9f9c4c5e14c14d86
https://github.com/ericapisani
make the type on the helper function stricterhttps://github.com/getsentry/sentry-python/pull/6566/commits/2d9a432e309791f62c1cd23ea58922db819fc7d4
2d9a432https://github.com/getsentry/sentry-python/pull/6566/commits/2d9a432e309791f62c1cd23ea58922db819fc7d4
https://github.com/apps/linear-code
linear-codehttps://github.com/apps/linear-code
Jun 12, 2026https://github.com/getsentry/sentry-python/pull/6566#issuecomment-4695503766
PY-2528https://linear.app/getsentry/issue/PY-2528
Please reload this pagehttps://github.com/getsentry/sentry-python/pull/6566
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
Jun 12, 2026https://github.com/getsentry/sentry-python/pull/6566#issuecomment-4695581213
Please reload this pagehttps://github.com/getsentry/sentry-python/pull/6566
sentry_sdk/integrations/flask.pyhttps://github.com/getsentry/sentry-python/pull/6566/files#diff-ca20f4c9782c913ba48cb412924d6ed3872771a715b2fc578b790a78938ba70d
Codecov Actionhttps://github.com/getsentry/codecov-action
Please reload this pagehttps://github.com/getsentry/sentry-python/pull/6566
https://github.com/ericapisani
ericapisanihttps://github.com/ericapisani
June 15, 2026 18:39https://github.com/getsentry/sentry-python/pull/6566#event-26773003888
https://github.com/ericapisani
ericapisanihttps://github.com/ericapisani
code ownerhttps://github.com/getsentry/sentry-python/blob/6bcfb9cf7e8e00a009bcd5ba4e1cb00f3fffe2d9/.github/CODEOWNERS#L1
June 15, 2026 18:39https://github.com/getsentry/sentry-python/pull/6566#event-26773004254
https://github.com/ericapisani
Merge branch 'master' into py-2528-set-user-data-on-flaskhttps://github.com/getsentry/sentry-python/pull/6566/commits/e650affc635ec10e8ed9e725f8d95a93f447c421
e650affhttps://github.com/getsentry/sentry-python/pull/6566/commits/e650affc635ec10e8ed9e725f8d95a93f447c421
https://github.com/apps/sentry
sentryhttps://github.com/apps/sentry
Jun 15, 2026 https://github.com/getsentry/sentry-python/pull/6566#pullrequestreview-4500132298
View reviewed changes https://github.com/getsentry/sentry-python/pull/6566/files/e650affc635ec10e8ed9e725f8d95a93f447c421
sentry_sdk/integrations/flask.pyhttps://github.com/getsentry/sentry-python/pull/6566/files/e650affc635ec10e8ed9e725f8d95a93f447c421#diff-ca20f4c9782c913ba48cb412924d6ed3872771a715b2fc578b790a78938ba70d
Please reload this pagehttps://github.com/getsentry/sentry-python/pull/6566
https://github.com/ericapisani
Add an extra guard for the email and usernamehttps://github.com/getsentry/sentry-python/pull/6566/commits/3e6a0ee1f28a98787517b4ac428cebac992a0e2f
3e6a0eehttps://github.com/getsentry/sentry-python/pull/6566/commits/3e6a0ee1f28a98787517b4ac428cebac992a0e2f
https://github.com/apps/cursor
cursorhttps://github.com/apps/cursor
Jun 15, 2026 https://github.com/getsentry/sentry-python/pull/6566#pullrequestreview-4500204851
View reviewed changes https://github.com/getsentry/sentry-python/pull/6566/files/3e6a0ee1f28a98787517b4ac428cebac992a0e2f
cursorhttps://github.com/apps/cursor
https://github.com/getsentry/sentry-python/pull/6566#pullrequestreview-4500204851
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
https://cursor.com/open?link=eyJ2ZXJzaW9uIjoxLCJ0eXBlIjoiQlVHQk9UX0ZJWF9BTExfSU5fQ1VSU09SIiwiZGF0YSI6eyJyZWRpc0tleSI6ImJ1Z2JvdC1tdWx0aToxODJjZTI1My04NmE3LTRiZjUtYmM1My0wOGY1NzQ2YzVjZGYiLCJlbmNyeXB0aW9uS2V5IjoiU3NQVkd0eWQxYW1ROTR5Z1pJSmJtdERLXzNSZTFIVXhBbTVGVXZFZGN1MCIsImJyYW5jaCI6InB5LTI1Mjgtc2V0LXVzZXItZGF0YS1vbi1mbGFzayIsInJlcG9Pd25lciI6ImdldHNlbnRyeSIsInJlcG9OYW1lIjoic2VudHJ5LXB5dGhvbiJ9fQ
Cursor dashboardhttps://www.cursor.com/dashboard/bugbot
Cursor Bugbothttps://cursor.com/bugbot
3e6a0eehttps://github.com/getsentry/sentry-python/commit/3e6a0ee1f28a98787517b4ac428cebac992a0e2f
herehttps://www.cursor.com/dashboard/bugbot
Please reload this pagehttps://github.com/getsentry/sentry-python/pull/6566
sentry_sdk/integrations/flask.pyhttps://github.com/getsentry/sentry-python/pull/6566/files/3e6a0ee1f28a98787517b4ac428cebac992a0e2f#diff-ca20f4c9782c913ba48cb412924d6ed3872771a715b2fc578b790a78938ba70d
cursorhttps://github.com/apps/cursor
Jun 15, 2026https://github.com/getsentry/sentry-python/pull/6566#discussion_r3415813071
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
https://cursor.com/open?link=eyJ2ZXJzaW9uIjoxLCJ0eXBlIjoiQlVHQk9UX0ZJWF9JTl9DVVJTT1IiLCJkYXRhIjp7InJlZGlzS2V5IjoiYnVnYm90OmE5OWQyYTg5LWUwMGQtNGE4Ny04Njg1LWY3MzM3NDk0MzFjMiIsImVuY3J5cHRpb25LZXkiOiJqZlNBbERoX0p1ZlFNMEJ3bW5nYnBtWUl4VWRVdk1sLWNUUzR0enNNVmtrIiwiYnJhbmNoIjoicHktMjUyOC1zZXQtdXNlci1kYXRhLW9uLWZsYXNrIiwicmVwb093bmVyIjoiZ2V0c2VudHJ5IiwicmVwb05hbWUiOiJzZW50cnktcHl0aG9uIn19
https://cursor.com/agents?link=eyJ2ZXJzaW9uIjoxLCJ0eXBlIjoiQlVHQk9UX0ZJWF9JTl9XRUIiLCJkYXRhIjp7InJlZGlzS2V5IjoiYnVnYm90OmE5OWQyYTg5LWUwMGQtNGE4Ny04Njg1LWY3MzM3NDk0MzFjMiIsImVuY3J5cHRpb25LZXkiOiJqZlNBbERoX0p1ZlFNMEJ3bW5nYnBtWUl4VWRVdk1sLWNUUzR0enNNVmtrIiwiYnJhbmNoIjoicHktMjUyOC1zZXQtdXNlci1kYXRhLW9uLWZsYXNrIiwicmVwb093bmVyIjoiZ2V0c2VudHJ5IiwicmVwb05hbWUiOiJzZW50cnktcHl0aG9uIiwicHJOdW1iZXIiOjY1NjYsImNvbW1pdFNoYSI6IjNlNmEwZWUxZjI4YTk4Nzg3NTE3YjRhYzQyOGNlYmFjOTkyYTBlMmYiLCJwcm92aWRlciI6ImdpdGh1YiJ9fQ
Cursor Bugbothttps://cursor.com/bugbot
3e6a0eehttps://github.com/getsentry/sentry-python/commit/3e6a0ee1f28a98787517b4ac428cebac992a0e2f
herehttps://www.cursor.com/dashboard/bugbot
Please reload this pagehttps://github.com/getsentry/sentry-python/pull/6566
https://github.com/alexander-alderman-webb
alexander-alderman-webbhttps://github.com/alexander-alderman-webb
Jun 16, 2026 https://github.com/getsentry/sentry-python/pull/6566#pullrequestreview-4506006792
View reviewed changes https://github.com/getsentry/sentry-python/pull/6566/files/3e6a0ee1f28a98787517b4ac428cebac992a0e2f
sentry_sdk/integrations/flask.pyhttps://github.com/getsentry/sentry-python/pull/6566/files/3e6a0ee1f28a98787517b4ac428cebac992a0e2f#diff-ca20f4c9782c913ba48cb412924d6ed3872771a715b2fc578b790a78938ba70d
alexander-alderman-webbhttps://github.com/alexander-alderman-webb
Jun 16, 2026https://github.com/getsentry/sentry-python/pull/6566#discussion_r3420425877
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/getsentry/sentry-python/pull/6566
sentry_sdk/integrations/flask.pyhttps://github.com/getsentry/sentry-python/pull/6566/files/3e6a0ee1f28a98787517b4ac428cebac992a0e2f#diff-ca20f4c9782c913ba48cb412924d6ed3872771a715b2fc578b790a78938ba70d
alexander-alderman-webbhttps://github.com/alexander-alderman-webb
Jun 16, 2026https://github.com/getsentry/sentry-python/pull/6566#discussion_r3420434087
Please reload this pagehttps://github.com/getsentry/sentry-python/pull/6566
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/getsentry/sentry-python/pull/6566
https://github.com/ericapisani
address cr commentshttps://github.com/getsentry/sentry-python/pull/6566/commits/c62eca2f61654f284e6c87e3c5471040e8550e2b
c62eca2https://github.com/getsentry/sentry-python/pull/6566/commits/c62eca2f61654f284e6c87e3c5471040e8550e2b
https://github.com/ericapisani
ericapisanihttps://github.com/ericapisani
72a57dehttps://github.com/getsentry/sentry-python/commit/72a57de789777a7b0b836ef1225463478cb7df6a
Jun 16, 2026https://github.com/getsentry/sentry-python/pull/6566#event-26807467393
Please reload this pagehttps://github.com/getsentry/sentry-python/pull/6566
https://github.com/ericapisani
ericapisanihttps://github.com/ericapisani
June 16, 2026 12:19https://github.com/getsentry/sentry-python/pull/6566#event-26807469021
https://github.com/apps/sentry-release-bot
sentry-release-bothttps://github.com/apps/sentry-release-bot
Jun 16, 2026 https://github.com/getsentry/sentry-python/pull/6566#ref-issue-4674082269
publish: getsentry/sentry-python@2.63.0 getsentry/publish#8582 https://github.com/getsentry/publish/issues/8582
mgalignianahttps://github.com/mgaligniana
Aug 9, 2026 https://github.com/getsentry/sentry-python/pull/6566#ref-commit-eeeb191
https://github.com/ericapisani
https://github.com/mgaligniana
fix(flask): Set user data on scope at request start (https://github.com/mgaligniana/sentry-python/commit/eeeb191567b330cad1b53719fe2cad78132a51a8
getsentry#6566https://github.com/getsentry/sentry-python/pull/6566
)https://github.com/mgaligniana/sentry-python/commit/eeeb191567b330cad1b53719fe2cad78132a51a8
eeeb191https://github.com/mgaligniana/sentry-python/commit/eeeb191567b330cad1b53719fe2cad78132a51a8
getsentryGH-6565https://github.com/getsentry/sentry-python/issues/6565
https://github.co/hiddenchars
https://github.com/getsentry/sentry-python/pull/{{ revealButtonHref }}
Sign up for freehttps://github.com/join?source=comment-repo
Sign in to commenthttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgetsentry%2Fsentry-python%2Fpull%2F6566
https://github.com/apps/sentry
sentry[bot] https://github.com/apps/sentry
https://github.com/getsentry/sentry-python/pull/6566/files/e650affc635ec10e8ed9e725f8d95a93f447c421
https://github.com/apps/cursor
cursor[bot] https://github.com/apps/cursor
https://github.com/getsentry/sentry-python/pull/6566/files/3e6a0ee1f28a98787517b4ac428cebac992a0e2f
https://github.com/alexander-alderman-webb
alexander-alderman-webb https://github.com/alexander-alderman-webb
https://github.com/getsentry/sentry-python/pull/6566/files/3e6a0ee1f28a98787517b4ac428cebac992a0e2f
Please reload this pagehttps://github.com/getsentry/sentry-python/pull/6566
Ensure user data is set on all spans within Flask https://github.com/getsentry/sentry-python/issues/6565
Please reload this pagehttps://github.com/getsentry/sentry-python/pull/6566
https://github.com/ericapisani
https://github.com/alexander-alderman-webb
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.