Title: Use `warnings.warn` for deprecations, and `logger.warning` for everything else · Issue #5010 · getsentry/sentry-python · GitHub
Open Graph Title: Use `warnings.warn` for deprecations, and `logger.warning` for everything else · Issue #5010 · getsentry/sentry-python
X Title: Use `warnings.warn` for deprecations, and `logger.warning` for everything else · Issue #5010 · getsentry/sentry-python
Description: Use warnings.warn for DeprecationWarnings and logger.warning for everything else. Anything emitted via warnings.warn should have an easy fix, because it might potentially block folks' test suites if they run it with -W. Add a deprecation...
Open Graph Description: Use warnings.warn for DeprecationWarnings and logger.warning for everything else. Anything emitted via warnings.warn should have an easy fix, because it might potentially block folks' test suites i...
X Description: Use warnings.warn for DeprecationWarnings and logger.warning for everything else. Anything emitted via warnings.warn should have an easy fix, because it might potentially block folks' test suit...
Opengraph URL: https://github.com/getsentry/sentry-python/issues/5010
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Use `warnings.warn` for deprecations, and `logger.warning` for everything else","articleBody":"Use `warnings.warn` for `DeprecationWarnings` and `logger.warning` for everything else.\n\nAnything emitted via `warnings.warn` should have an easy fix, because it might potentially block folks' test suites if they run it with `-W`.\n\nAdd a deprecation helper. \n\nOriginal POTel PR (just makes everything into warnings): [https://github.com/getsentry/sentry-python/pull/4180](\u003chttps://github.com/getsentry/sentry-python/pull/4180>)","author":{"url":"https://github.com/sentrivana","@type":"Person","name":"sentrivana"},"datePublished":"2025-10-24T07:51:05Z","url":"https://github.com/getsentry/sentry-python/issues/5010"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| 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:30b25623-9a31-4afb-d091-77bb055a23d9 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C540:33F146:18535:203E2:6B00B756 |
| html-safe-nonce | 9c65a22357a53f7a857e59530c7c7710c14ba92b7c7bac37bd12b3e26ed791c2 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNTQwOjMzRjE0NjoxODUzNToyMDNFMjo2QjAwQjc1NiIsInZpc2l0b3JfaWQiOiI3NTM4MDU3NzEzODU5NzM3NDMwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | b4c7d1136f4d55187d50a02584ec3a5989f484feaa79c87293fdf15e284b5a7a |
| hovercard-subject-tag | issue:3548108513 |
| 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/getsentry/sentry-python/5010/issue_layout |
| twitter:image | https://opengraph.githubassets.com/a748ade71fd05699a03bedf14689fb72e4abeccc01f0be300069974699dc1493/getsentry/sentry-python/issues/5010 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/a748ade71fd05699a03bedf14689fb72e4abeccc01f0be300069974699dc1493/getsentry/sentry-python/issues/5010 |
| og:image:alt | Use warnings.warn for DeprecationWarnings and logger.warning for everything else. Anything emitted via warnings.warn should have an easy fix, because it might potentially block folks' test suites i... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | sentrivana |
| hostname | github.com |
| expected-hostname | github.com |
| None | 1d07c25977adfc5ff6acb0a962a9bc168c07afbda6fef765f9761c350c2ae4a2 |
| turbo-cache-control | no-preview |
| go-import | github.com/getsentry/sentry-python git https://github.com/getsentry/sentry-python.git |
| octolytics-dimension-user_id | 1396951 |
| octolytics-dimension-user_login | getsentry |
| octolytics-dimension-repository_id | 137814779 |
| octolytics-dimension-repository_nwo | getsentry/sentry-python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 137814779 |
| octolytics-dimension-repository_network_root_nwo | getsentry/sentry-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 | 5429cbfc6aca8c7b9a086a3c8f47400346f38cc9 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width