You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
breaking(transport): Make HTTP2Transport the default (#4492)
Making the HTTP2 transport the default when `h2` and `httpcore` packages
are installed. We've been testing this on Sentry SaaS for a while
without any issues.
We should promote installing the SDK as `sentry-sdk[http2]` for this to
be picked up though. Since we still have to support Python 3.7 and `h2`
not being supported there, we cannot install it by default and use HTTP2
directly.
---------
Co-authored-by: Ivana Kellyer <[email protected]>
Copy file name to clipboardExpand all lines: MIGRATION_GUIDE.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -33,6 +33,7 @@ sentry_sdk.init(
33
33
34
34
- The SDK now supports Python 3.7 and higher.
35
35
- Tag values on event dictionaries, which are passed to `before_send` and `before_send_transaction`, now are always `str` values. Previously, despite tag values being typed as `str`, they often had different values. Therefore, if you have configured any `before_send` and `before_send_transaction` functions which perform some logic based on tag values, you need to check and if needed update those functions to correctly handle `str` values.
36
+
- The SDK now uses HTTP/2 for its default transport. This can be disabled via setting `http2=False` in `sentry_sdk.init()`. This change also affects `socket_options` as HTTP/2 requires persistent connections. If you want to disable keep-alive, consider disabling HTTP/2 as passing an empty list to `socket_options` would _not_ disable keep alive.
0 commit comments