|
1 | 1 | # Changelog
|
2 | 2 |
|
| 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 | + |
3 | 89 | ## 2.12.0
|
4 | 90 |
|
5 | 91 | ### Various fixes & improvements
|
|
0 commit comments