Skip to content

Commit 393834c

Browse files
authored
chore(python): Rename start_span parameter (#14446)
We'll be changing the name of this parameter, updating.
1 parent 9a2f1a6 commit 393834c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/platforms/python/migration/2.x-to-3.x.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ with sentry_sdk.start_span(name="parent"):
9494
...
9595
```
9696

97-
Any spans without a parent span will become transactions by default. If you want to avoid promoting a span without a parent to a transaction, you can pass the `only_if_parent=True` keyword argument to `sentry_sdk.start_span()`.
97+
Any spans without a parent span will become transactions by default. If you want to avoid promoting a span without a parent to a transaction, you can pass the `only_as_child_span=True` keyword argument to `sentry_sdk.start_span()`.
9898

9999
`sentry_sdk.start_transaction()` and `sentry_sdk.start_span()` no longer take the following arguments: `trace_id`, `baggage`, `span_id`, `parent_span_id`, `custom_sampling_context` (see below). Use `sentry_sdk.continue_trace()` for propagating trace data.
100100

0 commit comments

Comments
 (0)