From e07380761ee556a634afc7b0130aaa9e2b780dc0 Mon Sep 17 00:00:00 2001 From: getsentry-bot Date: Fri, 5 May 2023 11:48:37 +0000 Subject: [PATCH 1/2] release: 1.22.0 --- CHANGELOG.md | 12 ++++++++++++ docs/conf.py | 2 +- sentry_sdk/consts.py | 2 +- setup.py | 2 +- 4 files changed, 15 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f13720a23f..0904557e05 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,17 @@ # Changelog +## 1.22.0 + +### Various fixes & improvements + +- Add `cache.hit` and `cache.item_size` to Django (#2057) by @antonpirker +- Use functools.wrap for ThreadingIntegration patches to fix attributes (#2080) by @EpicWink +- Handle non-int exc.status_code in starlette (#2075) by @sentrivana +- fix(crons): Fix KeyError in capture_checkin if SDK is not initialized (#2073) by @antonpirker +- Handle sqlalchemy engine.name being bytes (#2074) by @sentrivana +- feat: Use `http.method` instead of `method` (#2054) by @AbhiPrasad +- Pin urllib3 to <2.0.0 for now (#2069) by @sl0thentr0py + ## 1.21.1 ### Various fixes & improvements diff --git a/docs/conf.py b/docs/conf.py index a0d4ad5f33..abc9645413 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -29,7 +29,7 @@ copyright = "2019, Sentry Team and Contributors" author = "Sentry Team and Contributors" -release = "1.21.1" +release = "1.22.0" version = ".".join(release.split(".")[:2]) # The short X.Y version. diff --git a/sentry_sdk/consts.py b/sentry_sdk/consts.py index 16a058c638..3f2f39bc66 100644 --- a/sentry_sdk/consts.py +++ b/sentry_sdk/consts.py @@ -194,4 +194,4 @@ def _get_default_options(): del _get_default_options -VERSION = "1.21.1" +VERSION = "1.22.0" diff --git a/setup.py b/setup.py index 7940d62d36..a3da84f9cf 100644 --- a/setup.py +++ b/setup.py @@ -21,7 +21,7 @@ def get_file_text(file_name): setup( name="sentry-sdk", - version="1.21.1", + version="1.22.0", author="Sentry Team and Contributors", author_email="hello@sentry.io", url="https://github.com/getsentry/sentry-python", From 917ef8faa03c73cae397a9d8b20cb3a8ff9c6829 Mon Sep 17 00:00:00 2001 From: Anton Pirker Date: Fri, 5 May 2023 13:58:44 +0200 Subject: [PATCH 2/2] Updated changelog --- CHANGELOG.md | 24 ++++++++++++++++++------ 1 file changed, 18 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0904557e05..61327a82a0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,12 +5,24 @@ ### Various fixes & improvements - Add `cache.hit` and `cache.item_size` to Django (#2057) by @antonpirker -- Use functools.wrap for ThreadingIntegration patches to fix attributes (#2080) by @EpicWink -- Handle non-int exc.status_code in starlette (#2075) by @sentrivana -- fix(crons): Fix KeyError in capture_checkin if SDK is not initialized (#2073) by @antonpirker -- Handle sqlalchemy engine.name being bytes (#2074) by @sentrivana -- feat: Use `http.method` instead of `method` (#2054) by @AbhiPrasad -- Pin urllib3 to <2.0.0 for now (#2069) by @sl0thentr0py + + _Note:_ This will add spans for all requests to the caches configured in Django. This will probably add some overhead to your server an also add multiple spans to your performance waterfall diagrams. If you do not want this, you can disable this feature in the DjangoIntegration: + + ```python + sentry_sdk.init( + dsn="...", + integrations=[ + DjangoIntegration(cache_spans=False), + ] + ) + ``` + +- Use `http.method` instead of `method` (#2054) by @AbhiPrasad +- Handle non-int `exc.status_code` in Starlette (#2075) by @sentrivana +- Handle SQLAlchemy `engine.name` being bytes (#2074) by @sentrivana +- Fix `KeyError` in `capture_checkin` if SDK is not initialized (#2073) by @antonpirker +- Use `functools.wrap` for `ThreadingIntegration` patches to fix attributes (#2080) by @EpicWink +- Pin `urllib3` to <2.0.0 for now (#2069) by @sl0thentr0py ## 1.21.1