René's URL Explorer Experiment


Title: feat: Introduce Transaction and Hub.start_transaction by rhcarvalho · Pull Request #747 · getsentry/sentry-python · GitHub

Open Graph Title: feat: Introduce Transaction and Hub.start_transaction by rhcarvalho · Pull Request #747 · getsentry/sentry-python

X Title: feat: Introduce Transaction and Hub.start_transaction by rhcarvalho · Pull Request #747 · getsentry/sentry-python

Description: This aligns the tracing implementation with the current JS tracing implementation, up to a certain extent. Hub.start_transaction or start_transaction are meant to be used when starting transactions, replacing most uses of Hub.start_span / start_span. Spans are typically created from their parent transactions via transaction.start_child, or start_span relying on the transaction being in the current scope. It is okay to start a transaction without a name and set it later. Sometimes the proper name is not known until after the transaction has started. We could fail the transaction if it has no name when calling the finish method. Instead, set a default name that will prompt users to give a name to their transactions. This is the same behavior as implemented in JS.

Open Graph Description: This aligns the tracing implementation with the current JS tracing implementation, up to a certain extent. Hub.start_transaction or start_transaction are meant to be used when starting transactions...

X Description: This aligns the tracing implementation with the current JS tracing implementation, up to a certain extent. Hub.start_transaction or start_transaction are meant to be used when starting transactions...

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

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:2af12c0f-5376-e8ef-c981-28ac02b6e2a1
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id94D6:652FC:3C9EB0:50DFBB:6B00A14C
html-safe-nonce83861beeb8667604428b82ce823ad83131072d8d1a0759410e4e4cdda54fa05b
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NEQ2OjY1MkZDOjNDOUVCMDo1MERGQkI6NkIwMEExNEMiLCJ2aXNpdG9yX2lkIjoiMTk1NzY1MjE1NTUxMDg1ODA2MCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac349ec20e05c6caf65fbe58b915b52746a68d1681cb65f868a41b1ee6e01bc8b2
hovercard-subject-tagpull_request:440813321
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/747/files
twitter:imagehttps://avatars.githubusercontent.com/u/88819?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/88819?s=400&v=4
og:image:altThis aligns the tracing implementation with the current JS tracing implementation, up to a certain extent. Hub.start_transaction or start_transaction are meant to be used when starting transactions...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None52c95ce7e48016ae14399656b4ee812462b6f1fa28c5008c8394da64794c00b8
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
release1c9ddec8215f9a94e295c8310c3579b9c54ba31a
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/getsentry/sentry-python/pull/747/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgetsentry%2Fsentry-python%2Fpull%2F747%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%2F747%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/747/files
Reloadhttps://github.com/getsentry/sentry-python/pull/747/files
Reloadhttps://github.com/getsentry/sentry-python/pull/747/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
rhcarvalhohttps://github.com/rhcarvalho
masterhttps://github.com/getsentry/sentry-python/tree/master
rhcarvalho/tracing-transactionhttps://github.com/getsentry/sentry-python/tree/rhcarvalho/tracing-transaction
Conversation 20 https://github.com/getsentry/sentry-python/pull/747
Commits 1 https://github.com/getsentry/sentry-python/pull/747/commits
Checks 0 https://github.com/getsentry/sentry-python/pull/747/checks
Files changed https://github.com/getsentry/sentry-python/pull/747/files
Please reload this pagehttps://github.com/getsentry/sentry-python/pull/747/files
feat: Introduce Transaction and Hub.start_transaction https://github.com/getsentry/sentry-python/pull/747/files#top
Show all changes 1 commit https://github.com/getsentry/sentry-python/pull/747/files
9389f49 feat: Introduce Transaction and Hub.start_transaction rhcarvalho Jun 26, 2020 https://github.com/getsentry/sentry-python/pull/747/commits/9389f49bd53ac65e5445d3a34d3ddb29c6e08c75
Clear filters https://github.com/getsentry/sentry-python/pull/747/files
Please reload this pagehttps://github.com/getsentry/sentry-python/pull/747/files
Please reload this pagehttps://github.com/getsentry/sentry-python/pull/747/files
api.py https://github.com/getsentry/sentry-python/pull/747/files#diff-690ed42d698cd22280722276215c4f508b32d30848ae796dd1f5b099b7df6112
hub.py https://github.com/getsentry/sentry-python/pull/747/files#diff-77d9f1abdc0bcb69029368ee19ece6f08f6d92ff07f80f53ffb1457dc75f7fd9
aiohttp.py https://github.com/getsentry/sentry-python/pull/747/files#diff-fcd5f0e16a3c89f23d45675191f19d41ae8bbc0c24f1c414e854cefbd6e87ef3
asgi.py https://github.com/getsentry/sentry-python/pull/747/files#diff-f8ecdcad48bf089612dbfcc2ddc7bf66c39ce04ab4b036615e9c8ad74603a1c9
celery.py https://github.com/getsentry/sentry-python/pull/747/files#diff-bbcc458d29b0f1880cf429abbf8a94a5e8517f61072945d783e44fec4969a10b
rq.py https://github.com/getsentry/sentry-python/pull/747/files#diff-2ad737333882fadd22dca252f9159daa9560a2107827749f583728c61544cf90
wsgi.py https://github.com/getsentry/sentry-python/pull/747/files#diff-58345d076fab49fb65de62f02cd574bad2b45191a5db133eb8edf412570b2623
scope.py https://github.com/getsentry/sentry-python/pull/747/files#diff-c935006d78056bc518dd6e898d31d972c130c63119df74edf122e2cf4a5733bc
tracing.py https://github.com/getsentry/sentry-python/pull/747/files#diff-771cb012ea65fcb826b77e2abb36b504fdf3407fbe8054857b05fe5a41ed5164
test_celery.py https://github.com/getsentry/sentry-python/pull/747/files#diff-12509b1c39c90a3d6aadbf659df0c96a191db68804be8afcc85eaaa6e7b7874e
test_sqlalchemy.py https://github.com/getsentry/sentry-python/pull/747/files#diff-79037249d5849a3209d4dc312145654a9f3f6e9168404f828b19a85782b6c321
test_subprocess.py https://github.com/getsentry/sentry-python/pull/747/files#diff-8021a8792e0ad554c42ea3bc9db273b929cf4643c3f61b77e76615425ef66f8d
test_tracing.py https://github.com/getsentry/sentry-python/pull/747/files#diff-1f82cebfdbd1dd410514f8a66ff6d3062c390662e153ff381218eb9492d64796
https://github.com/getsentry/sentry-python/blob/master/.github/CODEOWNERS#L1
sentry_sdk/api.pyhttps://github.com/getsentry/sentry-python/pull/747/files#diff-690ed42d698cd22280722276215c4f508b32d30848ae796dd1f5b099b7df6112
View file https://github.com/getsentry/sentry-python/blob/9389f49bd53ac65e5445d3a34d3ddb29c6e08c75/sentry_sdk/api.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/getsentry/sentry-python/pull/747/{{ revealButtonHref }}
https://github.com/getsentry/sentry-python/pull/747/files#diff-690ed42d698cd22280722276215c4f508b32d30848ae796dd1f5b099b7df6112
https://github.com/getsentry/sentry-python/pull/747/files#diff-690ed42d698cd22280722276215c4f508b32d30848ae796dd1f5b099b7df6112
https://github.com/getsentry/sentry-python/pull/747/files#diff-690ed42d698cd22280722276215c4f508b32d30848ae796dd1f5b099b7df6112
https://github.com/getsentry/sentry-python/pull/747/files#diff-690ed42d698cd22280722276215c4f508b32d30848ae796dd1f5b099b7df6112
https://github.com/getsentry/sentry-python/blob/master/.github/CODEOWNERS#L1
sentry_sdk/hub.pyhttps://github.com/getsentry/sentry-python/pull/747/files#diff-77d9f1abdc0bcb69029368ee19ece6f08f6d92ff07f80f53ffb1457dc75f7fd9
View file https://github.com/getsentry/sentry-python/blob/9389f49bd53ac65e5445d3a34d3ddb29c6e08c75/sentry_sdk/hub.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/getsentry/sentry-python/pull/747/{{ revealButtonHref }}
https://github.com/getsentry/sentry-python/pull/747/files#diff-77d9f1abdc0bcb69029368ee19ece6f08f6d92ff07f80f53ffb1457dc75f7fd9
https://github.com/getsentry/sentry-python/pull/747/files#diff-77d9f1abdc0bcb69029368ee19ece6f08f6d92ff07f80f53ffb1457dc75f7fd9
https://github.com/getsentry/sentry-python/pull/747/files#diff-77d9f1abdc0bcb69029368ee19ece6f08f6d92ff07f80f53ffb1457dc75f7fd9
AbhiPrasadhttps://github.com/AbhiPrasad
Jun 29, 2020https://github.com/getsentry/sentry-python/pull/747/files#r446918544
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/getsentry/sentry-python/pull/747/files
AbhiPrasadhttps://github.com/AbhiPrasad
Jun 29, 2020https://github.com/getsentry/sentry-python/pull/747/files#r446917394
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/getsentry/sentry-python/pull/747/files
rhcarvalhohttps://github.com/rhcarvalho
Jun 29, 2020https://github.com/getsentry/sentry-python/pull/747/files#r446990546
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/getsentry/sentry-python/pull/747/files
https://github.com/getsentry/sentry-python/pull/747/files#diff-77d9f1abdc0bcb69029368ee19ece6f08f6d92ff07f80f53ffb1457dc75f7fd9
https://github.com/getsentry/sentry-python/blob/master/.github/CODEOWNERS#L1
sentry_sdk/integrations/aiohttp.pyhttps://github.com/getsentry/sentry-python/pull/747/files#diff-fcd5f0e16a3c89f23d45675191f19d41ae8bbc0c24f1c414e854cefbd6e87ef3
View file https://github.com/getsentry/sentry-python/blob/9389f49bd53ac65e5445d3a34d3ddb29c6e08c75/sentry_sdk/integrations/aiohttp.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/getsentry/sentry-python/pull/747/{{ revealButtonHref }}
https://github.com/getsentry/sentry-python/pull/747/files#diff-fcd5f0e16a3c89f23d45675191f19d41ae8bbc0c24f1c414e854cefbd6e87ef3
https://github.com/getsentry/sentry-python/pull/747/files#diff-fcd5f0e16a3c89f23d45675191f19d41ae8bbc0c24f1c414e854cefbd6e87ef3
https://github.com/getsentry/sentry-python/pull/747/files#diff-fcd5f0e16a3c89f23d45675191f19d41ae8bbc0c24f1c414e854cefbd6e87ef3
https://github.com/getsentry/sentry-python/pull/747/files#diff-fcd5f0e16a3c89f23d45675191f19d41ae8bbc0c24f1c414e854cefbd6e87ef3
https://github.com/getsentry/sentry-python/blob/master/.github/CODEOWNERS#L1
sentry_sdk/integrations/asgi.pyhttps://github.com/getsentry/sentry-python/pull/747/files#diff-f8ecdcad48bf089612dbfcc2ddc7bf66c39ce04ab4b036615e9c8ad74603a1c9
View file https://github.com/getsentry/sentry-python/blob/9389f49bd53ac65e5445d3a34d3ddb29c6e08c75/sentry_sdk/integrations/asgi.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/getsentry/sentry-python/pull/747/{{ revealButtonHref }}
https://github.com/getsentry/sentry-python/pull/747/files#diff-f8ecdcad48bf089612dbfcc2ddc7bf66c39ce04ab4b036615e9c8ad74603a1c9
https://github.com/getsentry/sentry-python/pull/747/files#diff-f8ecdcad48bf089612dbfcc2ddc7bf66c39ce04ab4b036615e9c8ad74603a1c9
https://github.com/getsentry/sentry-python/pull/747/files#diff-f8ecdcad48bf089612dbfcc2ddc7bf66c39ce04ab4b036615e9c8ad74603a1c9
https://github.com/getsentry/sentry-python/pull/747/files#diff-f8ecdcad48bf089612dbfcc2ddc7bf66c39ce04ab4b036615e9c8ad74603a1c9
https://github.com/getsentry/sentry-python/blob/master/.github/CODEOWNERS#L1
sentry_sdk/integrations/celery.pyhttps://github.com/getsentry/sentry-python/pull/747/files#diff-bbcc458d29b0f1880cf429abbf8a94a5e8517f61072945d783e44fec4969a10b
View file https://github.com/getsentry/sentry-python/blob/9389f49bd53ac65e5445d3a34d3ddb29c6e08c75/sentry_sdk/integrations/celery.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/getsentry/sentry-python/pull/747/{{ revealButtonHref }}
https://github.com/getsentry/sentry-python/pull/747/files#diff-bbcc458d29b0f1880cf429abbf8a94a5e8517f61072945d783e44fec4969a10b
https://github.com/getsentry/sentry-python/pull/747/files#diff-bbcc458d29b0f1880cf429abbf8a94a5e8517f61072945d783e44fec4969a10b
https://github.com/getsentry/sentry-python/pull/747/files#diff-bbcc458d29b0f1880cf429abbf8a94a5e8517f61072945d783e44fec4969a10b
https://github.com/getsentry/sentry-python/pull/747/files#diff-bbcc458d29b0f1880cf429abbf8a94a5e8517f61072945d783e44fec4969a10b
https://github.com/getsentry/sentry-python/blob/master/.github/CODEOWNERS#L1
sentry_sdk/integrations/rq.pyhttps://github.com/getsentry/sentry-python/pull/747/files#diff-2ad737333882fadd22dca252f9159daa9560a2107827749f583728c61544cf90
View file https://github.com/getsentry/sentry-python/blob/9389f49bd53ac65e5445d3a34d3ddb29c6e08c75/sentry_sdk/integrations/rq.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/getsentry/sentry-python/pull/747/{{ revealButtonHref }}
https://github.com/getsentry/sentry-python/pull/747/files#diff-2ad737333882fadd22dca252f9159daa9560a2107827749f583728c61544cf90
https://github.com/getsentry/sentry-python/pull/747/files#diff-2ad737333882fadd22dca252f9159daa9560a2107827749f583728c61544cf90
https://github.com/getsentry/sentry-python/pull/747/files#diff-2ad737333882fadd22dca252f9159daa9560a2107827749f583728c61544cf90
https://github.com/getsentry/sentry-python/pull/747/files#diff-2ad737333882fadd22dca252f9159daa9560a2107827749f583728c61544cf90
https://github.com/getsentry/sentry-python/blob/master/.github/CODEOWNERS#L1
sentry_sdk/integrations/wsgi.pyhttps://github.com/getsentry/sentry-python/pull/747/files#diff-58345d076fab49fb65de62f02cd574bad2b45191a5db133eb8edf412570b2623
View file https://github.com/getsentry/sentry-python/blob/9389f49bd53ac65e5445d3a34d3ddb29c6e08c75/sentry_sdk/integrations/wsgi.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/getsentry/sentry-python/pull/747/{{ revealButtonHref }}
https://github.com/getsentry/sentry-python/pull/747/files#diff-58345d076fab49fb65de62f02cd574bad2b45191a5db133eb8edf412570b2623
https://github.com/getsentry/sentry-python/pull/747/files#diff-58345d076fab49fb65de62f02cd574bad2b45191a5db133eb8edf412570b2623
https://github.com/getsentry/sentry-python/pull/747/files#diff-58345d076fab49fb65de62f02cd574bad2b45191a5db133eb8edf412570b2623
https://github.com/getsentry/sentry-python/pull/747/files#diff-58345d076fab49fb65de62f02cd574bad2b45191a5db133eb8edf412570b2623
https://github.com/getsentry/sentry-python/pull/747/files#diff-58345d076fab49fb65de62f02cd574bad2b45191a5db133eb8edf412570b2623
Please reload this pagehttps://github.com/getsentry/sentry-python/pull/747/files
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.