René's URL Explorer Experiment


Title: Unpack custom_sampling_context into attributes in ASGI by sentrivana · Pull Request #3764 · getsentry/sentry-python · GitHub

Open Graph Title: Unpack custom_sampling_context into attributes in ASGI by sentrivana · Pull Request #3764 · getsentry/sentry-python

X Title: Unpack custom_sampling_context into attributes in ASGI by sentrivana · Pull Request #3764 · getsentry/sentry-python

Description: Replace custom_sampling_context={"asgi_scope": scope} with several span attributes. Also, add sampling_context["transaction_context"]["source"], which was previously missing. With the switch to OTel, custom_sampling_context can't continue to work as before. We've opted for making all necessary data accessible in the traces_sampler via span attributes instead. In order to use span attributes, we need to unpack any objects with serializable OTel-friendly data. Part of #3746

Open Graph Description: Replace custom_sampling_context={"asgi_scope": scope} with several span attributes. Also, add sampling_context["transaction_context"]["source"], which was previously m...

X Description: Replace custom_sampling_context={"asgi_scope": scope} with several span attributes. Also, add sampling_context["transaction_context"]["source"]...

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

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:e282bff8-1c66-fb9a-cca9-377323bc4f2c
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idBACC:2564D8:58AFF4:77C527:6B00D01A
html-safe-nonceb8720be70b5e7d46aa4b2cfd25c70c685b3ec4aa00277ab6af914be7b81ac9da
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQUNDOjI1NjREODo1OEFGRjQ6NzdDNTI3OjZCMDBEMDFBIiwidmlzaXRvcl9pZCI6IjUxODM0NzI0MzgzMzU3NzQ5OCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacc6c5bcba8efd7eacd91da6d0c2c861fc666ffd45172db40de281170262bc18c9
hovercard-subject-tagpull_request:2174792019
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/3764/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:altReplace custom_sampling_context={"asgi_scope": scope} with several span attributes. Also, add sampling_context["transaction_context"]["source"], which was previously m...
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/3764/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgetsentry%2Fsentry-python%2Fpull%2F3764%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%2F3764%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/3764/files
Reloadhttps://github.com/getsentry/sentry-python/pull/3764/files
Reloadhttps://github.com/getsentry/sentry-python/pull/3764/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-integrationshttps://github.com/getsentry/sentry-python/tree/ivana/custom-sampling-context-integrations
Conversation 4 https://github.com/getsentry/sentry-python/pull/3764
Commits 26 https://github.com/getsentry/sentry-python/pull/3764/commits
Checks 0 https://github.com/getsentry/sentry-python/pull/3764/checks
Files changed https://github.com/getsentry/sentry-python/pull/3764/files
Please reload this pagehttps://github.com/getsentry/sentry-python/pull/3764/files
Unpack custom_sampling_context into attributes in ASGI https://github.com/getsentry/sentry-python/pull/3764/files#top
Show all changes 26 commits https://github.com/getsentry/sentry-python/pull/3764/files
18103bc Remove custom_sampling_context sentrivana Nov 7, 2024 https://github.com/getsentry/sentry-python/pull/3764/commits/18103bcd0c81980eaa2bf647835ba0f10b6c4368
68402ff confusing wording sentrivana Nov 7, 2024 https://github.com/getsentry/sentry-python/pull/3764/commits/68402fff97e3f7b77aa07c58b45ae784200df912
70d02cc Merge branch 'potel-base' into ivana/sampling-context sentrivana Nov 7, 2024 https://github.com/getsentry/sentry-python/pull/3764/commits/70d02cc4032d4d41534027688766f989ecb51667
fa5d0ba keep old format (why not) sentrivana Nov 7, 2024 https://github.com/getsentry/sentry-python/pull/3764/commits/fa5d0ba76c57fde8d1498d2b2dc1ae1c674867a8
5df9ccc . sentrivana Nov 7, 2024 https://github.com/getsentry/sentry-python/pull/3764/commits/5df9ccc6336a513e11cdeb14c6339297c116eb0f
472ab5c add attrs sentrivana Nov 7, 2024 https://github.com/getsentry/sentry-python/pull/3764/commits/472ab5c23690fc7ae6cbd3c658654b36c8b31e1e
f893f12 . sentrivana Nov 7, 2024 https://github.com/getsentry/sentry-python/pull/3764/commits/f893f12a2deee3f5d6af89a767b92bb1d5a767e1
fff9f16 . sentrivana Nov 7, 2024 https://github.com/getsentry/sentry-python/pull/3764/commits/fff9f163cb4d94e9930d50530d2f5752f0aaae97
ce815e8 more removals sentrivana Nov 7, 2024 https://github.com/getsentry/sentry-python/pull/3764/commits/ce815e8ccee4d5940258b754bc13e16b432adf2f
d307fe1 Merge branch 'potel-base' into ivana/sampling-context sentrivana Nov 12, 2024 https://github.com/getsentry/sentry-python/pull/3764/commits/d307fe1c3ae7e904d4a2b6c312d7a3964165d7d9
747ecc6 more readme sentrivana Nov 12, 2024 https://github.com/getsentry/sentry-python/pull/3764/commits/747ecc6ca113fbf2d3b5488732c649c7c1dcdccc
7ae6745 more info sentrivana Nov 12, 2024 https://github.com/getsentry/sentry-python/pull/3764/commits/7ae6745076486ce851ce3375b75aa49869f7993a
09d247e comment sentrivana Nov 12, 2024 https://github.com/getsentry/sentry-python/pull/3764/commits/09d247ec3a1ffe1a96533efd1ba8014645513f5c
1aeeb68 small change sentrivana Nov 12, 2024 https://github.com/getsentry/sentry-python/pull/3764/commits/1aeeb68d7d3a00de82ea2dd60181eb8fd61d6ac2
786bb9e . sentrivana Nov 12, 2024 https://github.com/getsentry/sentry-python/pull/3764/commits/786bb9ea3ad3a8987734097c93e4854019bf09e7
80427c6 dont do everything in this pr sentrivana Nov 12, 2024 https://github.com/getsentry/sentry-python/pull/3764/commits/80427c6d4a304466c73b5897a1fcd0c74091dcd6
2acef08 get rid of none attributes sentrivana Nov 12, 2024 https://github.com/getsentry/sentry-python/pull/3764/commits/2acef08640fd3f15e0b429f423de3ea754cfa339
eb2df70 dropped result too sentrivana Nov 12, 2024 https://github.com/getsentry/sentry-python/pull/3764/commits/eb2df70b988c52fda9362181f0a965e1caffac4b
2cee373 Replace custom_sampling_context with attributes in ASGI sentrivana Nov 12, 2024 https://github.com/getsentry/sentry-python/pull/3764/commits/2cee3737a4ef7108ae653bcc04c5d90ad38e3cc2
f6fb9a9 add source too sentrivana Nov 12, 2024 https://github.com/getsentry/sentry-python/pull/3764/commits/f6fb9a91c704dae255fbb38fe61a0ec131362fe0
86c6373 Merge branch 'potel-base' into ivana/custom-sampling-context-integrat… sentrivana Nov 12, 2024 https://github.com/getsentry/sentry-python/pull/3764/commits/86c6373ef595fa995a10c637e3e603f8db7341b1
4002f38 fix starlette tests sentrivana Nov 12, 2024 https://github.com/getsentry/sentry-python/pull/3764/commits/4002f38e1383409c553c9e041179708e3c0a8726
dbc8ba2 fix fastapi sentrivana Nov 12, 2024 https://github.com/getsentry/sentry-python/pull/3764/commits/dbc8ba2eb79b404837fdec04683ee9e39a6a19c3
52f918a remove middleware spans toggle sentrivana Nov 13, 2024 https://github.com/getsentry/sentry-python/pull/3764/commits/52f918a997a0e77452e3ee1c0e822f60cbb347c8
6b063cf Merge branch 'potel-base' into ivana/custom-sampling-context-integrat… sentrivana Nov 13, 2024 https://github.com/getsentry/sentry-python/pull/3764/commits/6b063cf609717a70603761fba2aa9073a5e1dab1
530fa4f Merge branch 'potel-base' into ivana/custom-sampling-context-integrat… sentrivana Nov 14, 2024 https://github.com/getsentry/sentry-python/pull/3764/commits/530fa4fe13cfcba86ab2297f587088ee9f2e6395
Clear filters https://github.com/getsentry/sentry-python/pull/3764/files
Please reload this pagehttps://github.com/getsentry/sentry-python/pull/3764/files
Please reload this pagehttps://github.com/getsentry/sentry-python/pull/3764/files
MIGRATION_GUIDE.md https://github.com/getsentry/sentry-python/pull/3764/files#diff-45651f4c3460b0f20be048556615842a07ec86d262fe5d3d346b5e4a9ce56d6a
asgi.py https://github.com/getsentry/sentry-python/pull/3764/files#diff-f8ecdcad48bf089612dbfcc2ddc7bf66c39ce04ab4b036615e9c8ad74603a1c9
sampler.py https://github.com/getsentry/sentry-python/pull/3764/files#diff-59aa7195d955e153b5cdd730f888994996a72eaf5e9ea174335ce961841584a9
tracing.py https://github.com/getsentry/sentry-python/pull/3764/files#diff-771cb012ea65fcb826b77e2abb36b504fdf3407fbe8054857b05fe5a41ed5164
test_asgi.py https://github.com/getsentry/sentry-python/pull/3764/files#diff-a4ca49dac9c5fcce27a4fb5fb53e5f8e764b807773ba7c5476d70d74a9789353
https://github.com/getsentry/sentry-python/blob/potel-base/.github/CODEOWNERS#L1
MIGRATION_GUIDE.mdhttps://github.com/getsentry/sentry-python/pull/3764/files#diff-45651f4c3460b0f20be048556615842a07ec86d262fe5d3d346b5e4a9ce56d6a
View file https://github.com/getsentry/sentry-python/blob/530fa4fe13cfcba86ab2297f587088ee9f2e6395/MIGRATION_GUIDE.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/getsentry/sentry-python/pull/3764/{{ revealButtonHref }}
https://github.com/getsentry/sentry-python/pull/3764/files#diff-45651f4c3460b0f20be048556615842a07ec86d262fe5d3d346b5e4a9ce56d6a
https://github.com/getsentry/sentry-python/pull/3764/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/3764/files#diff-f8ecdcad48bf089612dbfcc2ddc7bf66c39ce04ab4b036615e9c8ad74603a1c9
View file https://github.com/getsentry/sentry-python/blob/530fa4fe13cfcba86ab2297f587088ee9f2e6395/sentry_sdk/integrations/asgi.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/getsentry/sentry-python/pull/3764/{{ revealButtonHref }}
https://github.com/getsentry/sentry-python/pull/3764/files#diff-f8ecdcad48bf089612dbfcc2ddc7bf66c39ce04ab4b036615e9c8ad74603a1c9
https://github.com/getsentry/sentry-python/pull/3764/files#diff-f8ecdcad48bf089612dbfcc2ddc7bf66c39ce04ab4b036615e9c8ad74603a1c9
https://github.com/getsentry/sentry-python/pull/3764/files#diff-f8ecdcad48bf089612dbfcc2ddc7bf66c39ce04ab4b036615e9c8ad74603a1c9
https://github.com/getsentry/sentry-python/blob/potel-base/.github/CODEOWNERS#L1
sentry_sdk/integrations/opentelemetry/sampler.pyhttps://github.com/getsentry/sentry-python/pull/3764/files#diff-59aa7195d955e153b5cdd730f888994996a72eaf5e9ea174335ce961841584a9
View file https://github.com/getsentry/sentry-python/blob/530fa4fe13cfcba86ab2297f587088ee9f2e6395/sentry_sdk/integrations/opentelemetry/sampler.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/getsentry/sentry-python/pull/3764/{{ revealButtonHref }}
https://github.com/getsentry/sentry-python/pull/3764/files#diff-59aa7195d955e153b5cdd730f888994996a72eaf5e9ea174335ce961841584a9
https://github.com/getsentry/sentry-python/pull/3764/files#diff-59aa7195d955e153b5cdd730f888994996a72eaf5e9ea174335ce961841584a9
https://github.com/getsentry/sentry-python/blob/potel-base/.github/CODEOWNERS#L1
sentry_sdk/tracing.pyhttps://github.com/getsentry/sentry-python/pull/3764/files#diff-771cb012ea65fcb826b77e2abb36b504fdf3407fbe8054857b05fe5a41ed5164
View file https://github.com/getsentry/sentry-python/blob/530fa4fe13cfcba86ab2297f587088ee9f2e6395/sentry_sdk/tracing.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/getsentry/sentry-python/pull/3764/{{ revealButtonHref }}
https://github.com/getsentry/sentry-python/pull/3764/files#diff-771cb012ea65fcb826b77e2abb36b504fdf3407fbe8054857b05fe5a41ed5164
https://github.com/getsentry/sentry-python/pull/3764/files#diff-771cb012ea65fcb826b77e2abb36b504fdf3407fbe8054857b05fe5a41ed5164
https://github.com/getsentry/sentry-python/pull/3764/files#diff-771cb012ea65fcb826b77e2abb36b504fdf3407fbe8054857b05fe5a41ed5164
https://github.com/getsentry/sentry-python/blob/potel-base/.github/CODEOWNERS#L1
tests/integrations/asgi/test_asgi.pyhttps://github.com/getsentry/sentry-python/pull/3764/files#diff-a4ca49dac9c5fcce27a4fb5fb53e5f8e764b807773ba7c5476d70d74a9789353
View file https://github.com/getsentry/sentry-python/blob/530fa4fe13cfcba86ab2297f587088ee9f2e6395/tests/integrations/asgi/test_asgi.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/getsentry/sentry-python/pull/3764/{{ revealButtonHref }}
https://github.com/getsentry/sentry-python/pull/3764/files#diff-a4ca49dac9c5fcce27a4fb5fb53e5f8e764b807773ba7c5476d70d74a9789353
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.