Skip to content

Commit 711816b

Browse files
committed
Updated changelog
1 parent 8841b1f commit 711816b

File tree

1 file changed

+39
-9
lines changed

1 file changed

+39
-9
lines changed

CHANGELOG.md

+39-9
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,47 @@
44

55
### Various fixes & improvements
66

7-
- feat: Sample everything 100% w/ Spotlight & no DSN set (#4207) by @BYK
8-
- Update Ubuntu in Github test runners (#4204) by @antonpirker
9-
- ci: Fix GraphQL failures (#4208) by @sentrivana
10-
- fix: Don't hang when capturing long stacktrace (#4191) by @szokeasaurusrex
11-
- feat(logs): Make the `logging` integration send Sentry logs (#4143) by @colin-sentry
7+
- **New Beta Feature** Enable Sentry logs in `logging` Integration (#4143) by @colin-sentry
8+
9+
You can now send existing log messages to the new Sentry Logs feature.
10+
11+
For more information see: https://github.com/getsentry/sentry/discussions/86804
12+
13+
This is how you can use it (Sentry Logs is in beta right now so the API can still change):
14+
15+
```python
16+
import sentry_sdk
17+
from sentry_sdk.integrations.logging import LoggingIntegration
18+
19+
# Setup Sentry SDK to send log messages with a level of "error" or higher to Sentry.
20+
sentry_sdk.init(
21+
dsn="...",
22+
_experiments={
23+
"enable_sentry_logs": True
24+
}
25+
integrations=[
26+
LoggingIntegration(sentry_logs_level="error"),
27+
]
28+
)
29+
30+
# Your existing logging setup
31+
import logging
32+
some_logger = logging.Logger("some-logger")
33+
34+
some_logger.info('In this example info events will not be sent to Sentry logs. my_value=%s', my_value)
35+
some_logger.error('But error events will be sent to Sentry logs. my_value=%s', my_value)
36+
```
37+
38+
- Spotlight: Sample everything 100% w/ Spotlight & no DSN set (#4207) by @BYK
39+
- Dramatiq: use set_transaction_name (#4175) by @timdrijvers
1240
- toxgen: Make it clearer which suites can be migrated (#4196) by @sentrivana
13-
- tests: Move Litestar under toxgen (#4197) by @sentrivana
14-
- chore: Deprecate Scope.user (#4194) by @sentrivana
15-
- Fix flaky test (#4198) by @sentrivana
16-
- fix(integrations/dramatiq): use set_transaction_name (#4175) by @timdrijvers
41+
- Move Litestar under toxgen (#4197) by @sentrivana
1742
- Added flake8 plugings to pre-commit call of flake8 (#4190) by @antonpirker
43+
- Deprecate Scope.user (#4194) by @sentrivana
44+
- Fix hanging when capturing long stacktrace (#4191) by @szokeasaurusrex
45+
- Fix GraphQL failures (#4208) by @sentrivana
46+
- Fix flaky test (#4198) by @sentrivana
47+
- Update Ubuntu in Github test runners (#4204) by @antonpirker
1848

1949
## 2.24.1
2050

0 commit comments

Comments
 (0)