René's URL Explorer Experiment


Title: Unpack WSGI environ into span attrs accessible in traces sampler by sentrivana · Pull Request #3775 · getsentry/sentry-python · GitHub

Open Graph Title: Unpack WSGI environ into span attrs accessible in traces sampler by sentrivana · Pull Request #3775 · getsentry/sentry-python

X Title: Unpack WSGI environ into span attrs accessible in traces sampler by sentrivana · Pull Request #3775 · getsentry/sentry-python

Description: Instead of passing wsgi_environ to the traces_sampler via sampling_context, unpack it into several span attributes and make those accessible in the traces_sampler. Add url.query for ASGI. Part of #3746

Open Graph Description: Instead of passing wsgi_environ to the traces_sampler via sampling_context, unpack it into several span attributes and make those accessible in the traces_sampler. Add url.query for ASGI. Part of ...

X Description: Instead of passing wsgi_environ to the traces_sampler via sampling_context, unpack it into several span attributes and make those accessible in the traces_sampler. Add url.query for ASGI. Part of ...

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

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/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:6149f159-0520-f1b2-360e-33fb9868d0b9
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idD01A:2E3FEE:3984DE:4A5EF7:6B00D278
html-safe-nonce12d05c78872916005e4b1737bfdcad5a0a07cf666191dc73bd963516a63774ec
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMDFBOjJFM0ZFRTozOTg0REU6NEE1RUY3OjZCMDBEMjc4IiwidmlzaXRvcl9pZCI6IjE0ODc4MzA5NDAwNDE0MDA5NTIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac310fa3e8308e1e5481cb1e3e04ef8692de63b09e9d7d54498ddacdf9acfe0cb2
hovercard-subject-tagpull_request:2179662623
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///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/getsentry/sentry-python/pull/3775/files
twitter:imagehttps://avatars.githubusercontent.com/u/131587164?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/131587164?s=400&v=4
og:image:altInstead of passing wsgi_environ to the traces_sampler via sampling_context, unpack it into several span attributes and make those accessible in the traces_sampler. Add url.query for ASGI. Part of ...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None85bbdfe2b6ba16e234513bc6ceff5d848ef8449820c900692a2b4e67061931e5
turbo-cache-controlno-preview
diff-viewunified
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 full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release4943239a6d2c591325dad6e5c313e1cafda877f6
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/getsentry/sentry-python/pull/3775/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgetsentry%2Fsentry-python%2Fpull%2F3775%2Ffiles
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%2F3775%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=getsentry%2Fsentry-python
Reloadhttps://github.com/getsentry/sentry-python/pull/3775/files
Reloadhttps://github.com/getsentry/sentry-python/pull/3775/files
Reloadhttps://github.com/getsentry/sentry-python/pull/3775/files
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
Sign up for GitHub https://github.com/signup?return_to=%2Fgetsentry%2Fsentry-python%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fgetsentry%2Fsentry-python%2Fissues%2Fnew%2Fchoose
sentrivanahttps://github.com/sentrivana
potel-basehttps://github.com/getsentry/sentry-python/tree/potel-base
ivana/custom-sampling-context-wsgihttps://github.com/getsentry/sentry-python/tree/ivana/custom-sampling-context-wsgi
Conversation 1 https://github.com/getsentry/sentry-python/pull/3775
Commits 34 https://github.com/getsentry/sentry-python/pull/3775/commits
Checks 0 https://github.com/getsentry/sentry-python/pull/3775/checks
Files changed https://github.com/getsentry/sentry-python/pull/3775/files
Please reload this pagehttps://github.com/getsentry/sentry-python/pull/3775/files
Unpack WSGI environ into span attrs accessible in traces sampler https://github.com/getsentry/sentry-python/pull/3775/files#top
Show all changes 34 commits https://github.com/getsentry/sentry-python/pull/3775/files
18103bc Remove custom_sampling_context sentrivana Nov 7, 2024 https://github.com/getsentry/sentry-python/pull/3775/commits/18103bcd0c81980eaa2bf647835ba0f10b6c4368
68402ff confusing wording sentrivana Nov 7, 2024 https://github.com/getsentry/sentry-python/pull/3775/commits/68402fff97e3f7b77aa07c58b45ae784200df912
70d02cc Merge branch 'potel-base' into ivana/sampling-context sentrivana Nov 7, 2024 https://github.com/getsentry/sentry-python/pull/3775/commits/70d02cc4032d4d41534027688766f989ecb51667
fa5d0ba keep old format (why not) sentrivana Nov 7, 2024 https://github.com/getsentry/sentry-python/pull/3775/commits/fa5d0ba76c57fde8d1498d2b2dc1ae1c674867a8
5df9ccc . sentrivana Nov 7, 2024 https://github.com/getsentry/sentry-python/pull/3775/commits/5df9ccc6336a513e11cdeb14c6339297c116eb0f
472ab5c add attrs sentrivana Nov 7, 2024 https://github.com/getsentry/sentry-python/pull/3775/commits/472ab5c23690fc7ae6cbd3c658654b36c8b31e1e
f893f12 . sentrivana Nov 7, 2024 https://github.com/getsentry/sentry-python/pull/3775/commits/f893f12a2deee3f5d6af89a767b92bb1d5a767e1
fff9f16 . sentrivana Nov 7, 2024 https://github.com/getsentry/sentry-python/pull/3775/commits/fff9f163cb4d94e9930d50530d2f5752f0aaae97
ce815e8 more removals sentrivana Nov 7, 2024 https://github.com/getsentry/sentry-python/pull/3775/commits/ce815e8ccee4d5940258b754bc13e16b432adf2f
d307fe1 Merge branch 'potel-base' into ivana/sampling-context sentrivana Nov 12, 2024 https://github.com/getsentry/sentry-python/pull/3775/commits/d307fe1c3ae7e904d4a2b6c312d7a3964165d7d9
747ecc6 more readme sentrivana Nov 12, 2024 https://github.com/getsentry/sentry-python/pull/3775/commits/747ecc6ca113fbf2d3b5488732c649c7c1dcdccc
7ae6745 more info sentrivana Nov 12, 2024 https://github.com/getsentry/sentry-python/pull/3775/commits/7ae6745076486ce851ce3375b75aa49869f7993a
09d247e comment sentrivana Nov 12, 2024 https://github.com/getsentry/sentry-python/pull/3775/commits/09d247ec3a1ffe1a96533efd1ba8014645513f5c
1aeeb68 small change sentrivana Nov 12, 2024 https://github.com/getsentry/sentry-python/pull/3775/commits/1aeeb68d7d3a00de82ea2dd60181eb8fd61d6ac2
786bb9e . sentrivana Nov 12, 2024 https://github.com/getsentry/sentry-python/pull/3775/commits/786bb9ea3ad3a8987734097c93e4854019bf09e7
80427c6 dont do everything in this pr sentrivana Nov 12, 2024 https://github.com/getsentry/sentry-python/pull/3775/commits/80427c6d4a304466c73b5897a1fcd0c74091dcd6
2acef08 get rid of none attributes sentrivana Nov 12, 2024 https://github.com/getsentry/sentry-python/pull/3775/commits/2acef08640fd3f15e0b429f423de3ea754cfa339
eb2df70 dropped result too sentrivana Nov 12, 2024 https://github.com/getsentry/sentry-python/pull/3775/commits/eb2df70b988c52fda9362181f0a965e1caffac4b
c559669 Use attributes instead of custom_sampling_context in WSGI sentrivana Nov 12, 2024 https://github.com/getsentry/sentry-python/pull/3775/commits/c5596693eb30853c8923378e4b8e901d002769f2
6e71d36 Merge branch 'potel-base' into ivana/custom-sampling-context-wsgi sentrivana Nov 12, 2024 https://github.com/getsentry/sentry-python/pull/3775/commits/6e71d36d1a627059abbafa1ba56f278c71c07e84
e0ddad5 Merge branch 'potel-base' into ivana/custom-sampling-context-wsgi sentrivana Nov 13, 2024 https://github.com/getsentry/sentry-python/pull/3775/commits/e0ddad5b64ee79b111dcf3c584806d03a1977055
ef68e44 . sentrivana Nov 13, 2024 https://github.com/getsentry/sentry-python/pull/3775/commits/ef68e44d461350f18afc3282c9a5a3617ed074b3
51ed959 Merge branch 'potel-base' into ivana/custom-sampling-context-wsgi sentrivana Nov 14, 2024 https://github.com/getsentry/sentry-python/pull/3775/commits/51ed959e65b8b6f49acb13f04bd1c984db34fa4f
e20dc06 Merge branch 'potel-base' into ivana/custom-sampling-context-wsgi sentrivana Nov 14, 2024 https://github.com/getsentry/sentry-python/pull/3775/commits/e20dc065e2931882388d62c1c0431962e819a4c6
be08540 todo sentrivana Nov 14, 2024 https://github.com/getsentry/sentry-python/pull/3775/commits/be0854046e4fbbcc01c70d46ce3c0379f3ffe1a1
126c3e3 Merge branch 'potel-base' into ivana/custom-sampling-context-wsgi sentrivana Nov 14, 2024 https://github.com/getsentry/sentry-python/pull/3775/commits/126c3e3298dd684a218804d4ff5bbaf43a30704d
c3fe091 url.full sentrivana Nov 14, 2024 https://github.com/getsentry/sentry-python/pull/3775/commits/c3fe091482b8ad8b29a66efa678aaa9030790d89
31505a5 migration guide sentrivana Nov 14, 2024 https://github.com/getsentry/sentry-python/pull/3775/commits/31505a5678bf7e5d96d910b127e4084a0a6374f8
5dff8d8 formatting sentrivana Nov 15, 2024 https://github.com/getsentry/sentry-python/pull/3775/commits/5dff8d85e4dae612332a254252869f80263044c6
f0ac52f Merge branch 'potel-base' into ivana/custom-sampling-context-wsgi sentrivana Nov 15, 2024 https://github.com/getsentry/sentry-python/pull/3775/commits/f0ac52fed1e02257be2925b5d7faec40e3acf6e8
471ad40 missing keys sentrivana Nov 15, 2024 https://github.com/getsentry/sentry-python/pull/3775/commits/471ad4036e69e5d47ebe9947687cf4de67cf787f
1a38de3 also add query for asgi sentrivana Nov 15, 2024 https://github.com/getsentry/sentry-python/pull/3775/commits/1a38de3b1cf9711b448d61275e70df63aa7a7e83
48ddc4f fix test sentrivana Nov 15, 2024 https://github.com/getsentry/sentry-python/pull/3775/commits/48ddc4f460ac646074bc0f5e54382954c900e73e
affbe59 reorg sentrivana Nov 15, 2024 https://github.com/getsentry/sentry-python/pull/3775/commits/affbe59de9c4b5ea90ab94ffd47c5af94362003d
Clear filters https://github.com/getsentry/sentry-python/pull/3775/files
Please reload this pagehttps://github.com/getsentry/sentry-python/pull/3775/files
Please reload this pagehttps://github.com/getsentry/sentry-python/pull/3775/files
MIGRATION_GUIDE.md https://github.com/getsentry/sentry-python/pull/3775/files#diff-45651f4c3460b0f20be048556615842a07ec86d262fe5d3d346b5e4a9ce56d6a
asgi.py https://github.com/getsentry/sentry-python/pull/3775/files#diff-f8ecdcad48bf089612dbfcc2ddc7bf66c39ce04ab4b036615e9c8ad74603a1c9
wsgi.py https://github.com/getsentry/sentry-python/pull/3775/files#diff-58345d076fab49fb65de62f02cd574bad2b45191a5db133eb8edf412570b2623
test_asgi.py https://github.com/getsentry/sentry-python/pull/3775/files#diff-a4ca49dac9c5fcce27a4fb5fb53e5f8e764b807773ba7c5476d70d74a9789353
test_wsgi.py https://github.com/getsentry/sentry-python/pull/3775/files#diff-bf66c9f03fd60c70360b54ccfe719c66f3c559c00be52d96ec92d2652ec611c2
https://github.com/getsentry/sentry-python/blob/potel-base/.github/CODEOWNERS#L1
MIGRATION_GUIDE.mdhttps://github.com/getsentry/sentry-python/pull/3775/files#diff-45651f4c3460b0f20be048556615842a07ec86d262fe5d3d346b5e4a9ce56d6a
View file https://github.com/getsentry/sentry-python/blob/affbe59de9c4b5ea90ab94ffd47c5af94362003d/MIGRATION_GUIDE.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/getsentry/sentry-python/pull/3775/{{ revealButtonHref }}
https://github.com/getsentry/sentry-python/pull/3775/files#diff-45651f4c3460b0f20be048556615842a07ec86d262fe5d3d346b5e4a9ce56d6a
https://github.com/getsentry/sentry-python/pull/3775/files#diff-45651f4c3460b0f20be048556615842a07ec86d262fe5d3d346b5e4a9ce56d6a
https://github.com/getsentry/sentry-python/blob/potel-base/.github/CODEOWNERS#L1
sentry_sdk/integrations/asgi.pyhttps://github.com/getsentry/sentry-python/pull/3775/files#diff-f8ecdcad48bf089612dbfcc2ddc7bf66c39ce04ab4b036615e9c8ad74603a1c9
View file https://github.com/getsentry/sentry-python/blob/affbe59de9c4b5ea90ab94ffd47c5af94362003d/sentry_sdk/integrations/asgi.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/getsentry/sentry-python/pull/3775/{{ revealButtonHref }}
https://github.com/getsentry/sentry-python/pull/3775/files#diff-f8ecdcad48bf089612dbfcc2ddc7bf66c39ce04ab4b036615e9c8ad74603a1c9
https://github.com/getsentry/sentry-python/pull/3775/files#diff-f8ecdcad48bf089612dbfcc2ddc7bf66c39ce04ab4b036615e9c8ad74603a1c9
https://github.com/getsentry/sentry-python/blob/potel-base/.github/CODEOWNERS#L1
sentry_sdk/integrations/wsgi.pyhttps://github.com/getsentry/sentry-python/pull/3775/files#diff-58345d076fab49fb65de62f02cd574bad2b45191a5db133eb8edf412570b2623
View file https://github.com/getsentry/sentry-python/blob/affbe59de9c4b5ea90ab94ffd47c5af94362003d/sentry_sdk/integrations/wsgi.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/getsentry/sentry-python/pull/3775/{{ revealButtonHref }}
https://github.com/getsentry/sentry-python/pull/3775/files#diff-58345d076fab49fb65de62f02cd574bad2b45191a5db133eb8edf412570b2623
https://github.com/getsentry/sentry-python/pull/3775/files#diff-58345d076fab49fb65de62f02cd574bad2b45191a5db133eb8edf412570b2623
https://github.com/getsentry/sentry-python/pull/3775/files#diff-58345d076fab49fb65de62f02cd574bad2b45191a5db133eb8edf412570b2623
https://github.com/getsentry/sentry-python/pull/3775/files#diff-58345d076fab49fb65de62f02cd574bad2b45191a5db133eb8edf412570b2623
https://github.com/getsentry/sentry-python/pull/3775/files#diff-58345d076fab49fb65de62f02cd574bad2b45191a5db133eb8edf412570b2623
https://github.com/getsentry/sentry-python/blob/potel-base/.github/CODEOWNERS#L1
tests/integrations/asgi/test_asgi.pyhttps://github.com/getsentry/sentry-python/pull/3775/files#diff-a4ca49dac9c5fcce27a4fb5fb53e5f8e764b807773ba7c5476d70d74a9789353
View file https://github.com/getsentry/sentry-python/blob/affbe59de9c4b5ea90ab94ffd47c5af94362003d/tests/integrations/asgi/test_asgi.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/getsentry/sentry-python/pull/3775/{{ revealButtonHref }}
https://github.com/getsentry/sentry-python/pull/3775/files#diff-a4ca49dac9c5fcce27a4fb5fb53e5f8e764b807773ba7c5476d70d74a9789353
https://github.com/getsentry/sentry-python/pull/3775/files#diff-a4ca49dac9c5fcce27a4fb5fb53e5f8e764b807773ba7c5476d70d74a9789353
https://github.com/getsentry/sentry-python/blob/potel-base/.github/CODEOWNERS#L1
tests/integrations/wsgi/test_wsgi.pyhttps://github.com/getsentry/sentry-python/pull/3775/files#diff-bf66c9f03fd60c70360b54ccfe719c66f3c559c00be52d96ec92d2652ec611c2
View file https://github.com/getsentry/sentry-python/blob/affbe59de9c4b5ea90ab94ffd47c5af94362003d/tests/integrations/wsgi/test_wsgi.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/getsentry/sentry-python/pull/3775/{{ revealButtonHref }}
https://github.com/getsentry/sentry-python/pull/3775/files#diff-bf66c9f03fd60c70360b54ccfe719c66f3c559c00be52d96ec92d2652ec611c2
https://github.com/getsentry/sentry-python/pull/3775/files#diff-bf66c9f03fd60c70360b54ccfe719c66f3c559c00be52d96ec92d2652ec611c2
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.