Skip to content

Commit 83917db

Browse files
author
getsentry-bot
committed
Merge branch 'release/1.9.7'
2 parents d0b70df + aba1db6 commit 83917db

File tree

4 files changed

+57
-42
lines changed

4 files changed

+57
-42
lines changed

CHANGELOG.md

Lines changed: 54 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,20 @@
11
# Changelog
22

3+
## 1.9.7
4+
5+
### Various fixes & improvements
6+
7+
- Let SentryAsgiMiddleware work with Starlette and FastAPI integrations (#1594) by @antonpirker
8+
9+
**Note:** The last version 1.9.6 introduced a breaking change where projects that used Starlette or FastAPI
10+
and had manually setup `SentryAsgiMiddleware` could not start. This versions fixes this behaviour.
11+
With this version if you have a manual `SentryAsgiMiddleware` setup and are using Starlette or FastAPI
12+
everything just works out of the box.
13+
14+
Sorry for any inconveniences the last version might have brought to you.
15+
16+
We can do better and in the future we will do our best to not break your code again.
17+
318
## 1.9.6
419

520
### Various fixes & improvements
@@ -60,44 +75,44 @@
6075
### Various fixes & improvements
6176

6277
- feat(starlette): add Starlette integration (#1441) by @sl0thentr0py
63-
64-
**Important:** Remove manual usage of `SentryAsgiMiddleware`! This is now done by the Starlette integration.
65-
66-
Usage:
67-
68-
```python
69-
from starlette.applications import Starlette
70-
71-
from sentry_sdk.integrations.starlette import StarletteIntegration
72-
73-
sentry_sdk.init(
74-
dsn="...",
75-
integrations=[StarletteIntegration()],
76-
)
77-
78-
app = Starlette(debug=True, routes=[...])
79-
```
78+
**Important:** Remove manual usage of `SentryAsgiMiddleware`! This is now done by the Starlette integration.
79+
Usage:
80+
81+
```python
82+
from starlette.applications import Starlette
83+
84+
from sentry_sdk.integrations.starlette import StarletteIntegration
85+
86+
sentry_sdk.init(
87+
dsn="...",
88+
integrations=[StarletteIntegration()],
89+
)
90+
91+
app = Starlette(debug=True, routes=[...])
92+
```
93+
8094
- feat(fastapi): add FastAPI integration (#829) by @antonpirker
81-
82-
**Important:** Remove manual usage of `SentryAsgiMiddleware`! This is now done by the FastAPI integration.
83-
84-
Usage:
85-
86-
```python
87-
from fastapi import FastAPI
88-
89-
from sentry_sdk.integrations.starlette import StarletteIntegration
90-
from sentry_sdk.integrations.fastapi import FastApiIntegration
91-
92-
sentry_sdk.init(
93-
dsn="...",
94-
integrations=[StarletteIntegration(), FastApiIntegration()],
95-
)
96-
97-
app = FastAPI()
98-
```
99-
100-
Yes, you have to add both, the `StarletteIntegration` **AND** the `FastApiIntegration`!
95+
96+
**Important:** Remove manual usage of `SentryAsgiMiddleware`! This is now done by the FastAPI integration.
97+
98+
Usage:
99+
100+
```python
101+
from fastapi import FastAPI
102+
103+
from sentry_sdk.integrations.starlette import StarletteIntegration
104+
from sentry_sdk.integrations.fastapi import FastApiIntegration
105+
106+
sentry_sdk.init(
107+
dsn="...",
108+
integrations=[StarletteIntegration(), FastApiIntegration()],
109+
)
110+
111+
app = FastAPI()
112+
```
113+
114+
Yes, you have to add both, the `StarletteIntegration` **AND** the `FastApiIntegration`!
115+
101116
- fix: avoid sending empty Baggage header (#1507) by @intgr
102117
- fix: properly freeze Baggage object (#1508) by @intgr
103118
- docs: fix simple typo, collecter -> collector (#1505) by @timgates42
@@ -122,7 +137,7 @@
122137
- feat(tracing): Dynamic Sampling Context / Baggage continuation (#1485) by @sl0thentr0py
123138

124139
The SDK now propagates the [W3C Baggage Header](https://www.w3.org/TR/baggage/) from
125-
incoming transactions to outgoing requests.
140+
incoming transactions to outgoing requests.
126141
It also extracts Sentry specific [sampling information](https://develop.sentry.dev/sdk/performance/dynamic-sampling-context/)
127142
and adds it to the transaction headers to enable Dynamic Sampling in the product.
128143

@@ -132,7 +147,7 @@
132147

133148
- Fix Deployment (#1474) by @antonpirker
134149
- Serverless V2 (#1450) by @antonpirker
135-
- Use logging levelno instead of levelname. Levelnames can be overridden (#1449) by @rrauenza
150+
- Use logging levelno instead of levelname. Levelnames can be overridden (#1449) by @rrauenza
136151

137152
## 1.5.12
138153

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.9.6"
32+
release = "1.9.7"
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
@@ -103,7 +103,7 @@ def _get_default_options():
103103
del _get_default_options
104104

105105

106-
VERSION = "1.9.6"
106+
VERSION = "1.9.7"
107107
SDK_INFO = {
108108
"name": "sentry.python",
109109
"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.9.6",
24+
version="1.9.7",
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)