From 6d19da67d2bd8b7ba74cb7e212bc28596802f6db Mon Sep 17 00:00:00 2001 From: Anton Pirker Date: Fri, 6 Jun 2025 09:30:54 +0200 Subject: [PATCH 1/2] Update Python migration guide --- docs/platforms/python/migration/2.x-to-3.x.mdx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/docs/platforms/python/migration/2.x-to-3.x.mdx b/docs/platforms/python/migration/2.x-to-3.x.mdx index 4cfca4d28ccf2..989160c86ebe3 100644 --- a/docs/platforms/python/migration/2.x-to-3.x.mdx +++ b/docs/platforms/python/migration/2.x-to-3.x.mdx @@ -83,7 +83,7 @@ Tracing in the Sentry Python SDK `3.x` is powered by [OpenTelemetry](https://ope 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()`. -`sentry_sdk.start_transaction()` and `sentry_sdk.start_span()` no longer take the following arguments: `trace_id`, `baggage`, `span_id`, `parent_span_id`. Use `sentry_sdk.continue_trace()` for propagating trace data. +`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. `sentry_sdk.continue_trace()` no longer returns a `Transaction` and is now a context manager. To continue a trace from headers or environment variables, start a new span inside `sentry_sdk.continue_trace()`: @@ -300,6 +300,11 @@ sentry_sdk.init( ) ``` +### Threading + +The parameter `propagate_hub` has been removed from `ThreadingIntegration`. Use the new `propagate_scope` parameter instead. (If you had `TreadingIntegration(propagate_hub=True)` you can remove the parameter) + + ### clickhouse-driver The query being executed is now available under the `db.query.text` span attribute (only if `send_default_pii` is `True`). From dc432758ab60d0b9b57aa61a09aede30b41857f1 Mon Sep 17 00:00:00 2001 From: Anton Pirker Date: Fri, 6 Jun 2025 09:38:23 +0200 Subject: [PATCH 2/2] Update docs/platforms/python/migration/2.x-to-3.x.mdx Co-authored-by: Ivana Kellyer --- docs/platforms/python/migration/2.x-to-3.x.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/platforms/python/migration/2.x-to-3.x.mdx b/docs/platforms/python/migration/2.x-to-3.x.mdx index 989160c86ebe3..d697c403ab9cb 100644 --- a/docs/platforms/python/migration/2.x-to-3.x.mdx +++ b/docs/platforms/python/migration/2.x-to-3.x.mdx @@ -302,7 +302,7 @@ sentry_sdk.init( ### Threading -The parameter `propagate_hub` has been removed from `ThreadingIntegration`. Use the new `propagate_scope` parameter instead. (If you had `TreadingIntegration(propagate_hub=True)` you can remove the parameter) +The parameter `propagate_hub` has been removed from `ThreadingIntegration`. Use the new `propagate_scope` parameter instead. (If you had `ThreadingIntegration(propagate_hub=True)`, you can remove the parameter.) ### clickhouse-driver