From c6a8be76795a0eefd98b7c1e6f220b397d9ed357 Mon Sep 17 00:00:00 2001 From: getsentry-bot Date: Tue, 23 May 2023 09:24:30 +0000 Subject: [PATCH 1/2] release: 1.24.0 --- CHANGELOG.md | 10 ++++++++++ docs/conf.py | 2 +- sentry_sdk/consts.py | 2 +- setup.py | 2 +- 4 files changed, 13 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7fa9fcfc95..fadb274f6a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,15 @@ # Changelog +## 1.24.0 + +### Various fixes & improvements + +- Pinned version of dependency that broke the build (#2133) by @antonpirker +- Add support for ExceptionGroups (#2025) by @antonpirker +- Celery beat exclude option (#2130) by @antonpirker +- Work with a copy of request, vars in the event (#2125) by @sentrivana +- Prefer importlib.metadata over pkg_resources if available (#2081) by @sentrivana + ## 1.23.1 ### Various fixes & improvements diff --git a/docs/conf.py b/docs/conf.py index b69e34c0c0..340f9e17fb 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.23.1" +release = "1.24.0" version = ".".join(release.split(".")[:2]) # The short X.Y version. diff --git a/sentry_sdk/consts.py b/sentry_sdk/consts.py index a7c5e3b853..18c888fa3b 100644 --- a/sentry_sdk/consts.py +++ b/sentry_sdk/consts.py @@ -214,4 +214,4 @@ def _get_default_options(): del _get_default_options -VERSION = "1.23.1" +VERSION = "1.24.0" diff --git a/setup.py b/setup.py index 104d48c699..1f2ce8d648 100644 --- a/setup.py +++ b/setup.py @@ -21,7 +21,7 @@ def get_file_text(file_name): setup( name="sentry-sdk", - version="1.23.1", + version="1.24.0", author="Sentry Team and Contributors", author_email="hello@sentry.io", url="https://github.com/getsentry/sentry-python", From 39b3770175e43933fa5f07262b15251cb94c00cd Mon Sep 17 00:00:00 2001 From: Anton Pirker Date: Tue, 23 May 2023 11:31:57 +0200 Subject: [PATCH 2/2] Updated changelog --- CHANGELOG.md | 36 ++++++++++++++++++++++++++++++++---- 1 file changed, 32 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index fadb274f6a..554b50dabc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,11 +4,39 @@ ### Various fixes & improvements -- Pinned version of dependency that broke the build (#2133) by @antonpirker -- Add support for ExceptionGroups (#2025) by @antonpirker -- Celery beat exclude option (#2130) by @antonpirker +- **New:** Celery Beat exclude tasks option (#2130) by @antonpirker + + You can exclude Celery Beat tasks from being auto-instrumented. To do this, add a list of tasks you want to exclude as option `exclude_beat_tasks` when creating `CeleryIntegration`. The list can contain simple strings with the full task name, as specified in the Celery Beat schedule, or regular expressions to match multiple tasks. + + For more information, see the documentation for [Crons](https://docs.sentry.io/platforms/python/guides/celery/crons/) for more information. + + Usage: + + ```python + exclude_beat_tasks = [ + "some-task-a", + "payment-check-.*", + ] + sentry_sdk.init( + dsn='___PUBLIC_DSN___', + integrations=[ + CeleryIntegration( + monitor_beat_tasks=True, + exclude_beat_tasks=exclude_beat_tasks, + ), + ], + ) + ``` + + In this example the task `some-task-a` and all tasks with a name starting with `payment-check-` will be ignored. + +- **New:** Add support for **ExceptionGroups** (#2025) by @antonpirker + + _Note:_ If running Self-Hosted Sentry, you should wait to adopt this SDK update until after updating to the 23.6.0 (est. June 2023) release of Sentry. Updating early will not break anything, but you will not get the full benefit of the Exception Groups improvements to issue grouping that were added to the Sentry backend. + +- Prefer `importlib.metadata` over `pkg_resources` if available (#2081) by @sentrivana - Work with a copy of request, vars in the event (#2125) by @sentrivana -- Prefer importlib.metadata over pkg_resources if available (#2081) by @sentrivana +- Pinned version of dependency that broke the build (#2133) by @antonpirker ## 1.23.1