Skip to content

Commit 90b7f1b

Browse files
author
getsentry-bot
committed
Merge branch 'release/1.8.0'
2 parents 11f3eb1 + 6aecffd commit 90b7f1b

File tree

4 files changed

+50
-3
lines changed

4 files changed

+50
-3
lines changed

CHANGELOG.md

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

3+
## 1.8.0
4+
5+
### Various fixes & improvements
6+
7+
- feat(starlette): add Starlette integration (#1441) by @sl0thentr0py
8+
9+
**Important:** Remove manual usage of `SentryAsgiMiddleware`! This is now done by the Starlette integration.
10+
11+
Usage:
12+
13+
```python
14+
from starlette.applications import Starlette
15+
16+
from sentry_sdk.integrations.starlette import StarletteIntegration
17+
18+
sentry_sdk.init(
19+
dsn="...",
20+
integrations=[StarletteIntegration()],
21+
)
22+
23+
app = Starlette(debug=True, routes=[...])
24+
```
25+
- feat(fastapi): add FastAPI integration (#829) by @antonpirker
26+
27+
**Important:** Remove manual usage of `SentryAsgiMiddleware`! This is now done by the FastAPI integration.
28+
29+
Usage:
30+
31+
```python
32+
from fastapi import FastAPI
33+
34+
from sentry_sdk.integrations.starlette import StarletteIntegration
35+
from sentry_sdk.integrations.fastapi import FastApiIntegration
36+
37+
sentry_sdk.init(
38+
dsn="...",
39+
integrations=[StarletteIntegration(), FastApiIntegration()],
40+
)
41+
42+
app = FastAPI()
43+
```
44+
45+
Yes, you have to add both, the `StarletteIntegration` **AND** the `FastApiIntegration`!
46+
- fix: avoid sending empty Baggage header (#1507) by @intgr
47+
- fix: properly freeze Baggage object (#1508) by @intgr
48+
- docs: fix simple typo, collecter -> collector (#1505) by @timgates42
49+
350
## 1.7.2
451

552
### Various fixes & improvements

docs/conf.py

Lines changed: 1 addition & 1 deletion
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.7.2"
32+
release = "1.8.0"
3333
version = ".".join(release.split(".")[:2]) # The short X.Y version.
3434

3535

sentry_sdk/consts.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ def _get_default_options():
102102
del _get_default_options
103103

104104

105-
VERSION = "1.7.2"
105+
VERSION = "1.8.0"
106106
SDK_INFO = {
107107
"name": "sentry.python",
108108
"version": VERSION,

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="1.7.2",
24+
version="1.8.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)