File tree Expand file tree Collapse file tree 4 files changed +50
-3
lines changed Expand file tree Collapse file tree 4 files changed +50
-3
lines changed Original file line number Diff line number Diff line change 1
1
# Changelog
2
2
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
+
3
50
# # 1.7.2
4
51
5
52
# ## Various fixes & improvements
Original file line number Diff line number Diff line change 29
29
copyright = "2019, Sentry Team and Contributors"
30
30
author = "Sentry Team and Contributors"
31
31
32
- release = "1.7.2 "
32
+ release = "1.8.0 "
33
33
version = "." .join (release .split ("." )[:2 ]) # The short X.Y version.
34
34
35
35
Original file line number Diff line number Diff line change @@ -102,7 +102,7 @@ def _get_default_options():
102
102
del _get_default_options
103
103
104
104
105
- VERSION = "1.7.2 "
105
+ VERSION = "1.8.0 "
106
106
SDK_INFO = {
107
107
"name" : "sentry.python" ,
108
108
"version" : VERSION ,
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ def get_file_text(file_name):
21
21
22
22
setup (
23
23
name = "sentry-sdk" ,
24
- version = "1.7.2 " ,
24
+ version = "1.8.0 " ,
25
25
author = "Sentry Team and Contributors" ,
26
26
27
27
url = "https://github.com/getsentry/sentry-python" ,
You can’t perform that action at this time.
0 commit comments