Skip to content

Commit 471ad40

Browse files
committed
missing keys
1 parent f0ac52f commit 471ad40

File tree

1 file changed

+14
-12
lines changed

1 file changed

+14
-12
lines changed

MIGRATION_GUIDE.md

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -21,18 +21,20 @@ Looking to upgrade from Sentry SDK 2.x to 3.x? Here's a comprehensive list of wh
2121
- clickhouse-driver integration: The query is now available under the `db.query.text` span attribute (only if `send_default_pii` is `True`).
2222
- `sentry_sdk.init` now returns `None` instead of a context manager.
2323
- 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:
25+
26+
| Env property | Sampling context key(s) |
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+
| `SERVER_PROTOCOL` | `server.protocol.name`, `server.protocol.version` |
34+
| `wsgi.url_scheme` | `url.scheme` |
35+
| full URL | `url.full` |
36+
37+
- 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:
3638

3739
| Scope property | Sampling context key(s) |
3840
| -------------- | ------------------------------- |

0 commit comments

Comments
 (0)