Skip to content

Commit 8672640

Browse files
author
getsentry-bot
committed
Merge branch 'release/1.23.0'
2 parents f8f53b8 + 8480e47 commit 8672640

File tree

4 files changed

+47
-3
lines changed

4 files changed

+47
-3
lines changed

CHANGELOG.md

+44
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,49 @@
11
# Changelog
22

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+
347
## 1.22.2
448

549
### Various fixes & improvements

docs/conf.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
copyright = "2019, Sentry Team and Contributors"
3030
author = "Sentry Team and Contributors"
3131

32-
release = "1.22.2"
32+
release = "1.23.0"
3333
version = ".".join(release.split(".")[:2]) # The short X.Y version.
3434

3535

sentry_sdk/consts.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -214,4 +214,4 @@ def _get_default_options():
214214
del _get_default_options
215215

216216

217-
VERSION = "1.22.2"
217+
VERSION = "1.23.0"

setup.py

+1-1
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="1.22.2",
24+
version="1.23.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)