Skip to content

Commit 5f4ab51

Browse files
committed
migration guide
1 parent 590de96 commit 5f4ab51

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

MIGRATION_GUIDE.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,17 @@ 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 `aiohttp_request` object anymore if you're using the `AioHttpIntegration`. Instead, some of the individual properties of the request are accessible, if available, as follows:
25+
26+
| Request property | Sampling context key(s) |
27+
| ---------------- | ------------------------------- |
28+
| `path` | `url.path` |
29+
| `query_string` | `url.query` |
30+
| `method` | `http.request.method` |
31+
| `host` | `server.address`, `server.port` |
32+
| `scheme` | `url.scheme` |
33+
| full URL | `url.full` |
34+
2435
- 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:
2536

2637
| Env property | Sampling context key(s) |

0 commit comments

Comments
 (0)