Skip to content

Commit 7b7791b

Browse files
committed
.
1 parent 6a8f788 commit 7b7791b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

MIGRATION_GUIDE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Looking to upgrade from Sentry SDK 2.x to 3.x? Here's a comprehensive list of wh
2727
- `sentry_sdk.start_transaction`/`sentry_sdk.start_span` no longer takes the following arguments: `span`, `parent_sampled`, `trace_id`, `span_id` or `parent_span_id`.
2828
- `sentry_sdk.continue_trace` no longer returns a `Transaction` and is now a context manager.
2929
- You can no longer change the sampled status of a span with `span.sampled = False` after starting it. The sampling decision needs to be either be made in the `traces_sampler`, or you need to pass an explicit `sampled` parameter to `start_span`.
30-
- `sentry_sdk.start_span` now takes an optional `only_as_child_span` argument. These spans will not be started if they would be root spans -- they can only exist as child spans.
30+
- `sentry_sdk.start_span` now takes an optional `only_as_child_span` argument. These spans will not be started if they would be root spans -- they can only exist as child spans. You can use this parameter to prevent spans without a parent from becoming root spans.
3131
- The `Span()` constructor does not accept a `hub` parameter anymore.
3232
- `Span.finish()` does not accept a `hub` parameter anymore.
3333
- `Span.finish()` no longer returns the `event_id` if the event is sent to Sentry.

0 commit comments

Comments
 (0)