|
1 | 1 | # Changelog |
2 | 2 |
|
| 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 | + |
3 | 18 | ## 1.9.6 |
4 | 19 |
|
5 | 20 | ### Various fixes & improvements |
|
60 | 75 | ### Various fixes & improvements |
61 | 76 |
|
62 | 77 | - 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 | + |
80 | 94 | - 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 | + |
101 | 116 | - fix: avoid sending empty Baggage header (#1507) by @intgr |
102 | 117 | - fix: properly freeze Baggage object (#1508) by @intgr |
103 | 118 | - docs: fix simple typo, collecter -> collector (#1505) by @timgates42 |
|
122 | 137 | - feat(tracing): Dynamic Sampling Context / Baggage continuation (#1485) by @sl0thentr0py |
123 | 138 |
|
124 | 139 | 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. |
126 | 141 | It also extracts Sentry specific [sampling information](https://develop.sentry.dev/sdk/performance/dynamic-sampling-context/) |
127 | 142 | and adds it to the transaction headers to enable Dynamic Sampling in the product. |
128 | 143 |
|
|
132 | 147 |
|
133 | 148 | - Fix Deployment (#1474) by @antonpirker |
134 | 149 | - 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 |
136 | 151 |
|
137 | 152 | ## 1.5.12 |
138 | 153 |
|
|
0 commit comments