8000 Merge branch 'release/2.25.0' · getsentry/sentry-python@ee97003 · GitHub
[go: up one dir, main page]

Skip to content

Commit ee97003

Browse files
author
getsentry-bot
committed
Merge branch 'release/2.25.0'
2 parents fae17b3 + 44cd9b7 commit ee97003

File tree

4 files changed

+49
-3
lines changed

4 files changed

+49
-3
lines changed

CHANGELOG.md

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,51 @@
11
# Changelog
22

3+
## 2.25.0
4+
5+
### Various fixes & improvements
6+
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
40+
- toxgen: Make it clearer which suites can be migrated (#4196) by @sentrivana
41+
- Move Litestar under toxgen (#4197) by @sentrivana
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
48+
349
## 2.24.1
450

551
### Various fixes & improvements

docs/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
copyright = "2019-{}, Sentry Team and Contributors".format(datetime.now().year)
3232
author = "Sentry Team and Contributors"
3333

34-
release = "2.24.1"
34+
release = "2.25.0"
3535
version = ".".join(release.split(".")[:2]) # The short X.Y version.
3636

3737

sentry_sdk/consts.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -966,4 +966,4 @@ def _get_default_options():
966966
del _get_default_options
967967

968968

969-
VERSION = "2.24.1"
969+
VERSION = "2.25.0"

setup.py

Lines changed: 1 addition & 1 deletion
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="2.24.1",
24+
version="2.25.0",
2525
author="Sentry Team and Contributors",
2626
author_email="hello@sentry.io",
2727
url="https://github.com/getsentry/sentry-python",

0 commit comments

Comments
 (0)
0