René's URL Explorer Experiment


Title: Use `asyncio.to_thread` to avoid `DeadlockError` while sending exception to Sentry by Natim · Pull Request #267 · temporalio/samples-python · GitHub

Open Graph Title: Use `asyncio.to_thread` to avoid `DeadlockError` while sending exception to Sentry by Natim · Pull Request #267 · temporalio/samples-python

X Title: Use `asyncio.to_thread` to avoid `DeadlockError` while sending exception to Sentry by Natim · Pull Request #267 · temporalio/samples-python

Description: Samples for working with the Temporal Python SDK. Contribute to temporalio/samples-python development by creating an account on GitHub.

Open Graph Description: What was changed Make the capture_exception call async in Sentry intercepor Why? Use asyncio.to_thread to avoid DeadlockError while sending exception to Sentry Checklist Refs feat: add example u...

X Description: What was changed Make the capture_exception call async in Sentry intercepor Why? Use asyncio.to_thread to avoid DeadlockError while sending exception to Sentry Checklist Refs feat: add example u...

Opengraph URL: https://github.com/temporalio/samples-python/pull/267

X: @github

direct link

Domain: github.com

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:ad7fdc5f-636a-51fc-d145-c393029ef0b2
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idA504:2853B5:319E2:46013:6A4D030A
html-safe-nonce8fdf80db699c8e610ed168ae8c4017f174471f77a6241dad8537a60d52fd84a2
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNTA0OjI4NTNCNTozMTlFMjo0NjAxMzo2QTREMDMwQSIsInZpc2l0b3JfaWQiOiIzMTE2MzI5MTM5NjIwODcyOTcwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmacebd6ccfcf30dfc03ad77efa0987684326ddb64c7c8a7feff8566659d3e187a78
hovercard-subject-tagpull_request:3109402951
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/temporalio/samples-python/267/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/d291dc953c55b7c24b7fb0fa25e244f8a852a04a81fa859d49aaa4aa136676ec/temporalio/samples-python/pull/267
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/d291dc953c55b7c24b7fb0fa25e244f8a852a04a81fa859d49aaa4aa136676ec/temporalio/samples-python/pull/267
og:image:altWhat was changed Make the capture_exception call async in Sentry intercepor Why? Use asyncio.to_thread to avoid DeadlockError while sending exception to Sentry Checklist Refs feat: add example u...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameNatim
hostnamegithub.com
expected-hostnamegithub.com
None31e4db13a9e20081f2fac78f441659a6576e582bbb15e153f9c7fb6473aa29f5
turbo-cache-controlno-cache
go-importgithub.com/temporalio/samples-python git https://github.com/temporalio/samples-python.git
octolytics-dimension-user_id56493103
octolytics-dimension-user_logintemporalio
octolytics-dimension-repository_id454557884
octolytics-dimension-repository_nwotemporalio/samples-python
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id454557884
octolytics-dimension-repository_network_root_nwotemporalio/samples-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
releasefb70bd3c4b2bec429781b65419e912c66e2d5581
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/temporalio/samples-python/pull/267#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Ftemporalio%2Fsamples-python%2Fpull%2F267
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
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
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://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/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Ftemporalio%2Fsamples-python%2Fpull%2F267
Sign up https://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=temporalio%2Fsamples-python
Reloadhttps://github.com/temporalio/samples-python/pull/267
Reloadhttps://github.com/temporalio/samples-python/pull/267
Reloadhttps://github.com/temporalio/samples-python/pull/267
Please reload this pagehttps://github.com/temporalio/samples-python/pull/267
temporalio https://github.com/temporalio
samples-pythonhttps://github.com/temporalio/samples-python
Notifications https://github.com/login?return_to=%2Ftemporalio%2Fsamples-python
Fork 112 https://github.com/login?return_to=%2Ftemporalio%2Fsamples-python
Star 358 https://github.com/login?return_to=%2Ftemporalio%2Fsamples-python
Code https://github.com/temporalio/samples-python
Issues 28 https://github.com/temporalio/samples-python/issues
Pull requests 54 https://github.com/temporalio/samples-python/pulls
Actions https://github.com/temporalio/samples-python/actions
Security and quality 0 https://github.com/temporalio/samples-python/security
Insights https://github.com/temporalio/samples-python/pulse
Code https://github.com/temporalio/samples-python
Issues https://github.com/temporalio/samples-python/issues
Pull requests https://github.com/temporalio/samples-python/pulls
Actions https://github.com/temporalio/samples-python/actions
Security and quality https://github.com/temporalio/samples-python/security
Insights https://github.com/temporalio/samples-python/pulse
Natimhttps://github.com/Natim
temporalio:mainhttps://github.com/temporalio/samples-python/tree/main
Natim:patch-1https://github.com/Natim/samples-python/tree/patch-1
Conversationhttps://github.com/temporalio/samples-python/pull/267
Commits1 (1)https://github.com/temporalio/samples-python/pull/267/commits
Checkshttps://github.com/temporalio/samples-python/pull/267/checks
Files changedhttps://github.com/temporalio/samples-python/pull/267/files
Use asyncio.to_thread to avoid DeadlockError while sending exception to Sentryhttps://github.com/temporalio/samples-python/pull/267#top
Natimhttps://github.com/Natim
temporalio:mainhttps://github.com/temporalio/samples-python/tree/main
Natim:patch-1https://github.com/Natim/samples-python/tree/patch-1
https://github.com/Natim
Natimhttps://github.com/Natim
Dec 17, 2025https://github.com/temporalio/samples-python/pull/267#issue-3738219544
feat: add example using Sentry V2 SDK #140https://github.com/temporalio/samples-python/pull/140
Please reload this pagehttps://github.com/temporalio/samples-python/pull/267
https://github.com/Natim
Natimhttps://github.com/Natim
code ownerhttps://github.com/temporalio/samples-python/blob/5140187cbe0c908fe7ce03176e83f2c419f93882/.github/CODEOWNERS#L1
December 17, 2025 10:09https://github.com/temporalio/samples-python/pull/267#event-21613473889
https://github.com/CLAassistant
CLAassistanthttps://github.com/CLAassistant
Dec 17, 2025https://github.com/temporalio/samples-python/pull/267#issuecomment-3664624395
Please reload this pagehttps://github.com/temporalio/samples-python/pull/267
https://cla-assistant.io/temporalio/samples-python?pullRequest=267
Please reload this pagehttps://github.com/temporalio/samples-python/pull/267
https://github.com/CLAassistant
CLAassistanthttps://github.com/CLAassistant
Dec 17, 2025https://github.com/temporalio/samples-python/pull/267#issuecomment-3664624396
https://cla-assistant.io/temporalio/samples-python?pullRequest=267
Contributor License Agreementhttps://cla-assistant.io/temporalio/samples-python?pullRequest=267
recheckhttps://cla-assistant.io/check/temporalio/samples-python?pullRequest=267
Please reload this pagehttps://github.com/temporalio/samples-python/pull/267
https://github.com/Natim
Use asyncio.to_thread to avoid Deadlock error sending to Sentryhttps://github.com/temporalio/samples-python/pull/267/commits/1e0b383624f493ab9106765557413eddd3cf6016
1e0b383https://github.com/temporalio/samples-python/pull/267/commits/1e0b383624f493ab9106765557413eddd3cf6016
https://github.com/Natim
Natimhttps://github.com/Natim
force-pushedhttps://github.com/temporalio/samples-python/compare/b8ecfbb2d69c82cfb5cb8c198ed9f6133872160f..1e0b383624f493ab9106765557413eddd3cf6016
b8ecfbbhttps://github.com/temporalio/samples-python/commit/b8ecfbb2d69c82cfb5cb8c198ed9f6133872160f
1e0b383https://github.com/temporalio/samples-python/commit/1e0b383624f493ab9106765557413eddd3cf6016
Compare https://github.com/temporalio/samples-python/compare/b8ecfbb2d69c82cfb5cb8c198ed9f6133872160f..1e0b383624f493ab9106765557413eddd3cf6016
December 17, 2025 10:33https://github.com/temporalio/samples-python/pull/267#event-21613996022
https://github.com/Natim
Natimhttps://github.com/Natim
Dec 17, 2025https://github.com/temporalio/samples-python/pull/267#issuecomment-3666170579
Please reload this pagehttps://github.com/temporalio/samples-python/pull/267
https://github.com/cretz
cretzhttps://github.com/cretz
Dec 19, 2025 https://github.com/temporalio/samples-python/pull/267#pullrequestreview-3599102482
View reviewed changes https://github.com/temporalio/samples-python/pull/267/files/1e0b383624f493ab9106765557413eddd3cf6016
sentry/interceptor.pyhttps://github.com/temporalio/samples-python/pull/267/files/1e0b383624f493ab9106765557413eddd3cf6016#diff-e3fb8c31913f580392e92fd2aa46dbac3880969cd7d051a2c899730fc5e21280
cretzhttps://github.com/cretz
Dec 19, 2025https://github.com/temporalio/samples-python/pull/267#discussion_r2635520521
Please reload this pagehttps://github.com/temporalio/samples-python/pull/267
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
getsentry/sentry-python#2824 (comment)https://github.com/getsentry/sentry-python/issues/2824#issuecomment-3345784564
https://github.com/temporalio/sdk-python/blob/main/temporalio/contrib/opentelemetry.pyhttps://github.com/temporalio/sdk-python/blob/main/temporalio/contrib/opentelemetry.py
Please reload this pagehttps://github.com/temporalio/samples-python/pull/267
https://github.co/hiddenchars
https://github.com/temporalio/samples-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%2Ftemporalio%2Fsamples-python%2Fpull%2F267
https://github.com/cretz
cretz https://github.com/cretz
https://github.com/temporalio/samples-python/pull/267/files/1e0b383624f493ab9106765557413eddd3cf6016
Please reload this pagehttps://github.com/temporalio/samples-python/pull/267
https://github.com/Natim
https://github.com/CLAassistant
https://github.com/cretz
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.