Skip to content

Commit

Permalink
migration guide
Browse files Browse the repository at this point in the history
  • Loading branch information
sentrivana committed Nov 14, 2024
1 parent c3fe091 commit 31505a5
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions MIGRATION_GUIDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,14 @@ Looking to upgrade from Sentry SDK 2.x to 3.x? Here's a comprehensive list of wh
- The `sampling_context` argument of `traces_sampler` now additionally contains all span attributes known at span start.
- 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:

| Env property | Sampling context key(s) |
| ------------ | ----------------------- |
# TODO
| Env property | Sampling context key |
| ------------ | ------------------------- |
| `PATH_INFO` | `url.path` |
| `QUERY_STRING` | `url.query` |
| `REQUEST_METHOD` | `http.request.method` |
| `SERVER_NAME` | `server.address` |
| `SERVER_PORT` | `server.port` |
| `wsgi.url_scheme` | `url.scheme` |

- 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:

Expand Down

0 comments on commit 31505a5

Please sign in to comment.