Title: [Bug] Sentry python sdk not working anymore · Issue #164 · temporalio/samples-python · GitHub
Open Graph Title: [Bug] Sentry python sdk not working anymore · Issue #164 · temporalio/samples-python
X Title: [Bug] Sentry python sdk not working anymore · Issue #164 · temporalio/samples-python
Description: What are you really trying to do? I was trying to use the sentry sdk sample but it does not work anymore because it indirectly uses the warning module. Describe the bug The with Hub(Hub.current) context manager triggers an import of the ...
Open Graph Description: What are you really trying to do? I was trying to use the sentry sdk sample but it does not work anymore because it indirectly uses the warning module. Describe the bug The with Hub(Hub.current) co...
X Description: What are you really trying to do? I was trying to use the sentry sdk sample but it does not work anymore because it indirectly uses the warning module. Describe the bug The with Hub(Hub.current) co...
Opengraph URL: https://github.com/temporalio/samples-python/issues/164
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[Bug] Sentry python sdk not working anymore","articleBody":"### What are you really trying to do?\n\nI was trying to use the sentry sdk sample but it does not work anymore because it indirectly uses the warning module.\n\n### Describe the bug\n\nThe `with Hub(Hub.current)` context manager triggers an import of the warning module because hub is being deprecated and there is an import-time warning about that.\n\nI am not exactly sure why the passthrough is not enough, I just started using temporal :)\n\n### Minimal Reproduction\n\nUse a sentry recent version (mine was `2.22.0`)\nSet up the sample, trigger a workflow.\nIt fails.\n\n### Additional context\n\nI was able to fix by replacing `with Hub(Hub.current)` with `with isolation_scope()`\n\nI wonder if to avoid future issue there is a way to handle some non-available lib in the sandbox directly? To have calling warnings for instance do nothing instead of failing ?\n","author":{"url":"https://github.com/nayef-livio-derwiche","@type":"Person","name":"nayef-livio-derwiche"},"datePublished":"2025-03-03T11:53:33.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":6},"url":"https://github.com/164/samples-python/issues/164"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:19df1582-c8e6-a4ee-fdfd-82ab3dc8595f |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9844:3F706A:2DBFF0:3DE6CA:6A4D8CD1 |
| html-safe-nonce | 028148be0071d07fe63f9f999ccd35d31e1123b0a4a1aea3ad640d217a497827 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5ODQ0OjNGNzA2QToyREJGRjA6M0RFNkNBOjZBNEQ4Q0QxIiwidmlzaXRvcl9pZCI6IjE2NDU2NzYxMjA2NDM1NzA4OTciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | bd144ddebb2d9f78c848d96a22455e447b330480994a96989c5e84a6c7d8d9e9 |
| hovercard-subject-tag | issue:2891030101 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/temporalio/samples-python/164/issue_layout |
| twitter:image | https://opengraph.githubassets.com/e8e35fa9a1eb977a2a0d3c75e637d1274c6bc4a8d0eeecacd8bcb7f05564106c/temporalio/samples-python/issues/164 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/e8e35fa9a1eb977a2a0d3c75e637d1274c6bc4a8d0eeecacd8bcb7f05564106c/temporalio/samples-python/issues/164 |
| og:image:alt | What are you really trying to do? I was trying to use the sentry sdk sample but it does not work anymore because it indirectly uses the warning module. Describe the bug The with Hub(Hub.current) co... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | nayef-livio-derwiche |
| hostname | github.com |
| expected-hostname | github.com |
| None | 9f8758a3953dfe943439713a6fa4f90d542a3431f10e861ca03dd7f39009f320 |
| turbo-cache-control | no-preview |
| go-import | github.com/temporalio/samples-python git https://github.com/temporalio/samples-python.git |
| octolytics-dimension-user_id | 56493103 |
| octolytics-dimension-user_login | temporalio |
| octolytics-dimension-repository_id | 454557884 |
| octolytics-dimension-repository_nwo | temporalio/samples-python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 454557884 |
| octolytics-dimension-repository_network_root_nwo | temporalio/samples-python |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | bffd5484f01713a661b03469b77678f72b6574ed |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width