|
4 | 4 |
|
5 | 5 | ### Various fixes & improvements
|
6 | 6 |
|
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 |
12 | 40 | - 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 |
17 | 42 | - 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 |
18 | 48 |
|
19 | 49 | ## 2.24.1
|
20 | 50 |
|
|
0 commit comments