Skip to content

Commit 8480e47

Browse files
authored
Update CHANGELOG.md
1 parent e82e4db commit 8480e47

File tree

1 file changed

+37
-9
lines changed

1 file changed

+37
-9
lines changed

Diff for: CHANGELOG.md

+37-9
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,45 @@
44

55
### Various fixes & improvements
66

7-
- Fixed Celery headers for Beat auto-instrumentation (#2102) by @antonpirker
8-
- Add a note about `pip freeze` to the bug template (#2103) by @sentrivana
9-
- Make sure we're importing redis the library (#2106) by @sentrivana
10-
- Surface `include_source_context` as an option (#2100) by @sentrivana
11-
- Import Markup from markupsafe (#2047) by @rco-ableton
12-
- Fix __qualname__ missing attribute in asyncio integration (#2105) by @sl0thentr0py
13-
- Ref: Add `include_source_context` option in utils (#2020) by @farhat-nawaz
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+
1437
- 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
1544
- Remove relay extension from AWS Layer (#2068) by @sl0thentr0py
16-
- Add `loguru` integration (#1994) by @PerchunPak
17-
- Add `db.operation` to Redis and MongoDB spans. (#2089) by @antonpirker
45+
- Add a note about `pip freeze` to the bug template (#2103) by @sentrivana
1846

1947
## 1.22.2
2048

0 commit comments

Comments
 (0)