Skip to content

Commit aee87fb

Browse files
author
getsentry-bot
committed
Merge branch 'release/2.13.0'
2 parents fc2d250 + 570307c commit aee87fb

File tree

4 files changed

+89
-3
lines changed

4 files changed

+89
-3
lines changed

CHANGELOG.md

Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,91 @@
11
# Changelog
22

3+
## 2.13.0
4+
5+
### Various fixes & improvements
6+
7+
- **New integration:** [Ray](https://docs.sentry.io/platforms/python/integrations/ray/) (#2400) (#2444) by @glowskir
8+
9+
Usage: (add the RayIntegration to your `sentry_sdk.init()` call and make sure it is called in the worker processes)
10+
```python
11+
import ray
12+
13+
import sentry_sdk
14+
from sentry_sdk.integrations.ray import RayIntegration
15+
16+
def init_sentry():
17+
sentry_sdk.init(
18+
dsn="...",
19+
traces_sample_rate=1.0,
20+
integrations=[RayIntegration()],
21+
)
22+
23+
init_sentry()
24+
25+
ray.init(
26+
runtime_env=dict(worker_process_setup_hook=init_sentry),
27+
)
28+
```
29+
For more information, see the documentation for the [Ray integration](https://docs.sentry.io/platforms/python/integrations/ray/).
30+
31+
- **New integration:** [Litestar](https://docs.sentry.io/platforms/python/integrations/litestar/) (#2413) (#3358) by @KellyWalker
32+
33+
Usage: (add the LitestarIntegration to your `sentry_sdk.init()`)
34+
```python
35+
from litestar import Litestar, get
36+
37+
import sentry_sdk
38+
from sentry_sdk.integrations.litestar import LitestarIntegration
39+
40+
sentry_sdk.init(
41+
dsn="...",
42+
traces_sample_rate=1.0,
43+
integrations=[LitestarIntegration()],
44+
)
45+
46+
@get("/")
47+
async def index() -> str:
48+
return "Hello, world!"
49+
50+
app = Litestar(...)
51+
```
52+
For more information, see the documentation for the [Litestar integration](https://docs.sentry.io/platforms/python/integrations/litestar/).
53+
54+
- **New integration:** [Dramatiq](https://docs.sentry.io/platforms/python/integrations/dramatiq/) from @jacobsvante (#3397) by @antonpirker
55+
Usage: (add the DramatiqIntegration to your `sentry_sdk.init()`)
56+
```python
57+
import dramatiq
58+
59+
import sentry_sdk
60+
from sentry_sdk.integrations.dramatiq import DramatiqIntegration
61+
62+
sentry_sdk.init(
63+
dsn="...",
64+
traces_sample_rate=1.0,
65+
integrations=[DramatiqIntegration()],
66+
)
67+
68+
@dramatiq.actor(max_retries=0)
69+
def dummy_actor(x, y):
70+
return x / y
71+
72+
dummy_actor.send(12, 0)
73+
```
74+
75+
For more information, see the documentation for the [Dramatiq integration](https://docs.sentry.io/platforms/python/integrations/dramatiq/).
76+
77+
- **New config option:** Expose `custom_repr` function that precedes `safe_repr` invocation in serializer (#3438) by @sl0thentr0py
78+
79+
See: https://docs.sentry.io/platforms/python/configuration/options/#custom-repr
80+
81+
- Profiling: Add client SDK info to profile chunk (#3386) by @Zylphrex
82+
- Serialize vars early to avoid living references (#3409) by @sl0thentr0py
83+
- Deprecate hub-based `sessions.py` logic (#3419) by @szokeasaurusrex
84+
- Deprecate `is_auto_session_tracking_enabled` (#3428) by @szokeasaurusrex
85+
- Add note to generated yaml files (#3423) by @sentrivana
86+
- Slim down PR template (#3382) by @sentrivana
87+
- Use new banner in readme (#3390) by @sentrivana
88+
389
## 2.12.0
490

591
### Various fixes & improvements

docs/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
copyright = "2019-{}, Sentry Team and Contributors".format(datetime.now().year)
2929
author = "Sentry Team and Contributors"
3030

31-
release = "2.12.0"
31+
release = "2.13.0"
3232
version = ".".join(release.split(".")[:2]) # The short X.Y version.
3333

3434

sentry_sdk/consts.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -567,4 +567,4 @@ def _get_default_options():
567567
del _get_default_options
568568

569569

570-
VERSION = "2.12.0"
570+
VERSION = "2.13.0"

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def get_file_text(file_name):
2121

2222
setup(
2323
name="sentry-sdk",
24-
version="2.12.0",
24+
version="2.13.0",
2525
author="Sentry Team and Contributors",
2626
author_email="[email protected]",
2727
url="https://github.com/getsentry/sentry-python",

0 commit comments

Comments
 (0)