Skip to content

Commit 68bb877

Browse files
committed
migration guide
1 parent 2df60fb commit 68bb877

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

MIGRATION_GUIDE.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,18 @@ Looking to upgrade from Sentry SDK 2.x to 3.x? Here's a comprehensive list of wh
3232
| `scheme` | `url.scheme` |
3333
| full URL | `url.full` |
3434

35+
- If you're using the Tornado integration, the `sampling_context` argument of `traces_sampler` doesn't contain the `tornado_request` object anymore. Instead, some of the individual properties of the request are accessible, if available, as follows:
36+
37+
| Request property | Sampling context key(s) |
38+
| ---------------- | --------------------------------------------------- |
39+
| `path` | `url.path` |
40+
| `query` | `url.query` |
41+
| `protocol` | `url.scheme` |
42+
| `method` | `http.request.method` |
43+
| `host` | `server.address`, `server.port` |
44+
| `version` | `network.protocol.name`, `network.protocol.version` |
45+
| full URL | `url.full` |
46+
3547
- If you're using the generic WSGI integration, the `sampling_context` argument of `traces_sampler` doesn't contain the `wsgi_environ` object anymore. Instead, the individual properties of the environment are accessible, if available, as follows:
3648

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

0 commit comments

Comments
 (0)