Skip to content

Commit 570307c

Browse files
committed
Updated changelog
1 parent 4c1ea7a commit 570307c

File tree

1 file changed

+79
-13
lines changed

1 file changed

+79
-13
lines changed

CHANGELOG.md

+79-13
Original file line numberDiff line numberDiff line change
@@ -4,21 +4,87 @@
44

55
### Various fixes & improvements
66

7-
- feat: Add ray integration support (#2400) (#2444) by @glowskir
8-
- Expose custom_repr function that precedes safe_repr invocation in serializer (#3438) by @sl0thentr0py
9-
- ref(sessions): Deprecate hub-based `sessions.py` logic (#3419) by @szokeasaurusrex
10-
- ref(sessions): Deprecate `is_auto_session_tracking_enabled` (#3428) by @szokeasaurusrex
11-
- Add note to generated yaml files (#3423) by @sentrivana
12-
- test(sessions): Remove unnecessary line (#3418) by @szokeasaurusrex
13-
- Dramatiq integration from @jacobsvante (#3397) by @antonpirker
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
1482
- Serialize vars early to avoid living references (#3409) by @sl0thentr0py
15-
- feat(profiling): Add client sdk info to profile chunk (#3386) by @Zylphrex
16-
- Link to persistent banner in README (#3399) by @sentrivana
17-
- feat(integrations): Update StarliteIntegration to be more in line with new LitestarIntegration (#3384) by @KellyWalker
18-
- feat(integrations): Add litestar and starlite to get_sdk_name (#3385) by @KellyWalker
19-
- feat(integrations): Support Litestar (#2413) (#3358) by @KellyWalker
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
2087
- Use new banner in readme (#3390) by @sentrivana
21-
- meta: Slim down PR template (#3382) by @sentrivana
2288

2389
## 2.12.0
2490

0 commit comments

Comments
 (0)