getsentry/sentry-python (sentry-sdk)
### [`v2.13.0`](https://togithub.com/getsentry/sentry-python/blob/HEAD/CHANGELOG.md#2130)
[Compare Source](https://togithub.com/getsentry/sentry-python/compare/2.12.0...2.13.0)
##### Various fixes & improvements
- **New integration:** [Ray](https://docs.sentry.io/platforms/python/integrations/ray/) ([#2400](https://togithub.com/getsentry/sentry-python/issues/2400)) ([#2444](https://togithub.com/getsentry/sentry-python/issues/2444)) by [@glowskir](https://togithub.com/glowskir)
Usage: (add the RayIntegration to your `sentry_sdk.init()` call and make sure it is called in the worker processes)
```python
import ray
import sentry_sdk
from sentry_sdk.integrations.ray import RayIntegration
def init_sentry():
sentry_sdk.init(
dsn="...",
traces_sample_rate=1.0,
integrations=[RayIntegration()],
)
init_sentry()
ray.init(
runtime_env=dict(worker_process_setup_hook=init_sentry),
)
```
For more information, see the documentation for the [Ray integration](https://docs.sentry.io/platforms/python/integrations/ray/).
- **New integration:** [Litestar](https://docs.sentry.io/platforms/python/integrations/litestar/) ([#2413](https://togithub.com/getsentry/sentry-python/issues/2413)) ([#3358](https://togithub.com/getsentry/sentry-python/issues/3358)) by [@KellyWalker](https://togithub.com/KellyWalker)
Usage: (add the LitestarIntegration to your `sentry_sdk.init()`)
```python
from litestar import Litestar, get
import sentry_sdk
from sentry_sdk.integrations.litestar import LitestarIntegration
sentry_sdk.init(
dsn="...",
traces_sample_rate=1.0,
integrations=[LitestarIntegration()],
)
@get("/")
async def index() -> str:
return "Hello, world!"
app = Litestar(...)
```
For more information, see the documentation for the [Litestar integration](https://docs.sentry.io/platforms/python/integrations/litestar/).
- **New integration:** [Dramatiq](https://docs.sentry.io/platforms/python/integrations/dramatiq/) from [@jacobsvante](https://togithub.com/jacobsvante) ([#3397](https://togithub.com/getsentry/sentry-python/issues/3397)) by [@antonpirker](https://togithub.com/antonpirker)
Usage: (add the DramatiqIntegration to your `sentry_sdk.init()`)
```python
import dramatiq
import sentry_sdk
from sentry_sdk.integrations.dramatiq import DramatiqIntegration
sentry_sdk.init(
dsn="...",
traces_sample_rate=1.0,
integrations=[DramatiqIntegration()],
)
@dramatiq.actor(max_retries=0)
def dummy_actor(x, y):
return x / y
dummy_actor.send(12, 0)
```
For more information, see the documentation for the [Dramatiq integration](https://docs.sentry.io/platforms/python/integrations/dramatiq/).
- **New config option:** Expose `custom_repr` function that precedes `safe_repr` invocation in serializer ([#3438](https://togithub.com/getsentry/sentry-python/issues/3438)) by [@sl0thentr0py](https://togithub.com/sl0thentr0py)
See: https://docs.sentry.io/platforms/python/configuration/options/#custom-repr
- Profiling: Add client SDK info to profile chunk ([#3386](https://togithub.com/getsentry/sentry-python/issues/3386)) by [@Zylphrex](https://togithub.com/Zylphrex)
- Serialize vars early to avoid living references ([#3409](https://togithub.com/getsentry/sentry-python/issues/3409)) by [@sl0thentr0py](https://togithub.com/sl0thentr0py)
- Deprecate hub-based `sessions.py` logic ([#3419](https://togithub.com/getsentry/sentry-python/issues/3419)) by [@szokeasaurusrex](https://togithub.com/szokeasaurusrex)
- Deprecate `is_auto_session_tracking_enabled` ([#3428](https://togithub.com/getsentry/sentry-python/issues/3428)) by [@szokeasaurusrex](https://togithub.com/szokeasaurusrex)
- Add note to generated yaml files ([#3423](https://togithub.com/getsentry/sentry-python/issues/3423)) by [@sentrivana](https://togithub.com/sentrivana)
- Slim down PR template ([#3382](https://togithub.com/getsentry/sentry-python/issues/3382)) by [@sentrivana](https://togithub.com/sentrivana)
- Use new banner in readme ([#3390](https://togithub.com/getsentry/sentry-python/issues/3390)) by [@sentrivana](https://togithub.com/sentrivana)
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
[ ] If you want to rebase/retry this PR, check this box
This PR contains the following updates:
2.12.0
->2.13.0
Release Notes
getsentry/sentry-python (sentry-sdk)
### [`v2.13.0`](https://togithub.com/getsentry/sentry-python/blob/HEAD/CHANGELOG.md#2130) [Compare Source](https://togithub.com/getsentry/sentry-python/compare/2.12.0...2.13.0) ##### Various fixes & improvements - **New integration:** [Ray](https://docs.sentry.io/platforms/python/integrations/ray/) ([#2400](https://togithub.com/getsentry/sentry-python/issues/2400)) ([#2444](https://togithub.com/getsentry/sentry-python/issues/2444)) by [@glowskir](https://togithub.com/glowskir) Usage: (add the RayIntegration to your `sentry_sdk.init()` call and make sure it is called in the worker processes) ```python import ray import sentry_sdk from sentry_sdk.integrations.ray import RayIntegration def init_sentry(): sentry_sdk.init( dsn="...", traces_sample_rate=1.0, integrations=[RayIntegration()], ) init_sentry() ray.init( runtime_env=dict(worker_process_setup_hook=init_sentry), ) ``` For more information, see the documentation for the [Ray integration](https://docs.sentry.io/platforms/python/integrations/ray/). - **New integration:** [Litestar](https://docs.sentry.io/platforms/python/integrations/litestar/) ([#2413](https://togithub.com/getsentry/sentry-python/issues/2413)) ([#3358](https://togithub.com/getsentry/sentry-python/issues/3358)) by [@KellyWalker](https://togithub.com/KellyWalker) Usage: (add the LitestarIntegration to your `sentry_sdk.init()`) ```python from litestar import Litestar, get import sentry_sdk from sentry_sdk.integrations.litestar import LitestarIntegration sentry_sdk.init( dsn="...", traces_sample_rate=1.0, integrations=[LitestarIntegration()], ) @get("/") async def index() -> str: return "Hello, world!" app = Litestar(...) ``` For more information, see the documentation for the [Litestar integration](https://docs.sentry.io/platforms/python/integrations/litestar/). - **New integration:** [Dramatiq](https://docs.sentry.io/platforms/python/integrations/dramatiq/) from [@jacobsvante](https://togithub.com/jacobsvante) ([#3397](https://togithub.com/getsentry/sentry-python/issues/3397)) by [@antonpirker](https://togithub.com/antonpirker) Usage: (add the DramatiqIntegration to your `sentry_sdk.init()`) ```python import dramatiq import sentry_sdk from sentry_sdk.integrations.dramatiq import DramatiqIntegration sentry_sdk.init( dsn="...", traces_sample_rate=1.0, integrations=[DramatiqIntegration()], ) @dramatiq.actor(max_retries=0) def dummy_actor(x, y): return x / y dummy_actor.send(12, 0) ``` For more information, see the documentation for the [Dramatiq integration](https://docs.sentry.io/platforms/python/integrations/dramatiq/). - **New config option:** Expose `custom_repr` function that precedes `safe_repr` invocation in serializer ([#3438](https://togithub.com/getsentry/sentry-python/issues/3438)) by [@sl0thentr0py](https://togithub.com/sl0thentr0py) See: https://docs.sentry.io/platforms/python/configuration/options/#custom-repr - Profiling: Add client SDK info to profile chunk ([#3386](https://togithub.com/getsentry/sentry-python/issues/3386)) by [@Zylphrex](https://togithub.com/Zylphrex) - Serialize vars early to avoid living references ([#3409](https://togithub.com/getsentry/sentry-python/issues/3409)) by [@sl0thentr0py](https://togithub.com/sl0thentr0py) - Deprecate hub-based `sessions.py` logic ([#3419](https://togithub.com/getsentry/sentry-python/issues/3419)) by [@szokeasaurusrex](https://togithub.com/szokeasaurusrex) - Deprecate `is_auto_session_tracking_enabled` ([#3428](https://togithub.com/getsentry/sentry-python/issues/3428)) by [@szokeasaurusrex](https://togithub.com/szokeasaurusrex) - Add note to generated yaml files ([#3423](https://togithub.com/getsentry/sentry-python/issues/3423)) by [@sentrivana](https://togithub.com/sentrivana) - Slim down PR template ([#3382](https://togithub.com/getsentry/sentry-python/issues/3382)) by [@sentrivana](https://togithub.com/sentrivana) - Use new banner in readme ([#3390](https://togithub.com/getsentry/sentry-python/issues/3390)) by [@sentrivana](https://togithub.com/sentrivana)Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.