Skip to content

Commit 39b3770

Browse files
committed
Updated changelog
1 parent c6a8be7 commit 39b3770

File tree

1 file changed

+32
-4
lines changed

1 file changed

+32
-4
lines changed

CHANGELOG.md

+32-4
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,39 @@
44

55
### Various fixes & improvements
66

7-
- Pinned version of dependency that broke the build (#2133) by @antonpirker
8-
- Add support for ExceptionGroups (#2025) by @antonpirker
9-
- Celery beat exclude option (#2130) by @antonpirker
7+
- **New:** Celery Beat exclude tasks option (#2130) by @antonpirker
8+
9+
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.
10+
11+
For more information, see the documentation for [Crons](https://docs.sentry.io/platforms/python/guides/celery/crons/) for more information.
12+
13+
Usage:
14+
15+
```python
16+
exclude_beat_tasks = [
17+
"some-task-a",
18+
"payment-check-.*",
19+
]
20+
sentry_sdk.init(
21+
dsn='___PUBLIC_DSN___',
22+
integrations=[
23+
CeleryIntegration(
24+
monitor_beat_tasks=True,
25+
exclude_beat_tasks=exclude_beat_tasks,
26+
),
27+
],
28+
)
29+
```
30+
31+
In this example the task `some-task-a` and all tasks with a name starting with `payment-check-` will be ignored.
32+
33+
- **New:** Add support for **ExceptionGroups** (#2025) by @antonpirker
34+
35+
_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.
36+
37+
- Prefer `importlib.metadata` over `pkg_resources` if available (#2081) by @sentrivana
1038
- Work with a copy of request, vars in the event (#2125) by @sentrivana
11-
- Prefer importlib.metadata over pkg_resources if available (#2081) by @sentrivana
39+
- Pinned version of dependency that broke the build (#2133) by @antonpirker
1240

1341
## 1.23.1
1442

0 commit comments

Comments
 (0)