|
1 | 1 | # Changelog
|
2 | 2 |
|
| 3 | +## 1.23.0 |
| 4 | + |
| 5 | +### Various fixes & improvements |
| 6 | + |
| 7 | +- **New:** Add `loguru` integration (#1994) by @PerchunPak |
| 8 | + |
| 9 | + Check [the documentation](https://docs.sentry.io/platforms/python/configuration/integrations/loguru/) for more information. |
| 10 | + |
| 11 | + Usage: |
| 12 | + |
| 13 | + ```python |
| 14 | + from loguru import logger |
| 15 | + import sentry_sdk |
| 16 | + from sentry_sdk.integrations.loguru import LoguruIntegration |
| 17 | + |
| 18 | + sentry_sdk.init( |
| 19 | + dsn="___PUBLIC_DSN___", |
| 20 | + integrations=[ |
| 21 | + LoguruIntegration(), |
| 22 | + ], |
| 23 | + ) |
| 24 | + |
| 25 | + logger.debug("I am ignored") |
| 26 | + logger.info("I am a breadcrumb") |
| 27 | + logger.error("I am an event", extra=dict(bar=43)) |
| 28 | + logger.exception("An exception happened") |
| 29 | + ``` |
| 30 | + |
| 31 | + - An error event with the message `"I am an event"` will be created. |
| 32 | + - `"I am a breadcrumb"` will be attached as a breadcrumb to that event. |
| 33 | + - `bar` will end up in the `extra` attributes of that event. |
| 34 | + - `"An exception happened"` will send the current exception from `sys.exc_info()` with the stack trace to Sentry. If there's no exception, the current stack will be attached. |
| 35 | + - The debug message `"I am ignored"` will not be captured by Sentry. To capture it, set `level` to `DEBUG` or lower in `LoguruIntegration`. |
| 36 | + |
| 37 | +- Do not truncate request body if `request_bodies` is `"always"` (#2092) by @sentrivana |
| 38 | +- Fixed Celery headers for Beat auto-instrumentation (#2102) by @antonpirker |
| 39 | +- Add `db.operation` to Redis and MongoDB spans (#2089) by @antonpirker |
| 40 | +- Make sure we're importing `redis` the library (#2106) by @sentrivana |
| 41 | +- Add `include_source_context` option (#2020) by @farhat-nawaz and @sentrivana |
| 42 | +- Import `Markup` from `markupsafe` (#2047) by @rco-ableton |
| 43 | +- Fix `__qualname__` missing attribute in asyncio integration (#2105) by @sl0thentr0py |
| 44 | +- Remove relay extension from AWS Layer (#2068) by @sl0thentr0py |
| 45 | +- Add a note about `pip freeze` to the bug template (#2103) by @sentrivana |
| 46 | + |
3 | 47 | ## 1.22.2
|
4 | 48 |
|
5 | 49 | ### Various fixes & improvements
|
|
0 commit comments