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 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
Original file line number Diff line number Diff line change 2929copyright = "2019, Sentry Team and Contributors"
3030author = "Sentry Team and Contributors"
3131
32- release = "1.7.2 "
32+ release = "1.8.0 "
3333version = "." .join (release .split ("." )[:2 ]) # The short X.Y version.
3434
3535
Original file line number Diff line number Diff line change @@ -102,7 +102,7 @@ def _get_default_options():
102102del _get_default_options
103103
104104
105- VERSION = "1.7.2 "
105+ VERSION = "1.8.0 "
106106SDK_INFO = {
107107 "name" : "sentry.python" ,
108108 "version" : VERSION ,
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ def get_file_text(file_name):
2121
2222setup (
2323 name = "sentry-sdk" ,
24- version = "1.7.2 " ,
24+ version = "1.8.0 " ,
2525 author = "Sentry Team and Contributors" ,
2626 author_email = "hello@sentry.io" ,
2727 url = "https://github.com/getsentry/sentry-python" ,
You can’t perform that action at this time.
0 commit comments