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
Copy file name to clipboardExpand all lines: MIGRATION_GUIDE.md
+14-12Lines changed: 14 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,18 +21,20 @@ Looking to upgrade from Sentry SDK 2.x to 3.x? Here's a comprehensive list of wh
21
21
- clickhouse-driver integration: The query is now available under the `db.query.text` span attribute (only if `send_default_pii` is `True`).
22
22
-`sentry_sdk.init` now returns `None` instead of a context manager.
23
23
- The `sampling_context` argument of `traces_sampler` now additionally contains all span attributes known at span start.
24
-
- The `sampling_context` argument of `traces_sampler` doesn't contain the `wsgi_environ` object anymore for WSGI frameworks. Instead, the individual properties on the environment are accessible, if available, as follows:
25
-
26
-
| Env property | Sampling context key |
27
-
| ----------------- | --------------------- |
28
-
|`PATH_INFO`|`url.path`|
29
-
|`QUERY_STRING`|`url.query`|
30
-
|`REQUEST_METHOD`|`http.request.method`|
31
-
|`SERVER_NAME`|`server.address`|
32
-
|`SERVER_PORT`|`server.port`|
33
-
|`wsgi.url_scheme`|`url.scheme`|
34
-
35
-
- The `sampling_context` argument of `traces_sampler` doesn't contain the `asgi_scope` object anymore for ASGI frameworks. Instead, the individual properties on the scope, if available, are accessible as follows:
24
+
- The `sampling_context` argument of `traces_sampler` doesn't contain the `wsgi_environ` object anymore for WSGI frameworks. Instead, the individual properties of the environment are accessible, if available, as follows:
- The `sampling_context` argument of `traces_sampler` doesn't contain the `asgi_scope` object anymore for ASGI frameworks. Instead, the individual properties of the scope, if available, are accessible as follows:
0 commit comments