Skip to content

Commit 621b856

Browse files
committed
migration guide
1 parent b72844a commit 621b856

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
@@ -71,6 +71,18 @@ Looking to upgrade from Sentry SDK 2.x to 3.x? Here's a comprehensive list of wh
7171
| `client` | `client.address`, `client.port` |
7272
| full URL | `url.full` |
7373

74+
- If you're using the RQ integration, the `sampling_context` argument of `traces_sampler` doesn't contain the `rq_job` object anymore. Instead, the individual properties of the scope, if available, are accessible as follows:
75+
76+
| RQ property | Sampling context key(s) |
77+
| --------------- | ---------------------------- |
78+
| `rq_job.args` | `rq.job.args` |
79+
| `rq_job.kwargs` | `rq.job.kwargs` |
80+
| `rq_job.func` | `rq.job.func` |
81+
| `queue.name` | `messaging.destination.name` |
82+
| `job.id` | `messaging.message.id` |
83+
84+
Note that `rq.job.args`, `rq.job.kwargs`, and `rq.job.func` are serialized and not the actual objects on the job.
85+
7486
### Removed
7587

7688
- Spans no longer have a `description`. Use `name` instead.

0 commit comments

Comments
 (0)