From c0631a355d4c4d423fa43a957ba5a077ab89688d Mon Sep 17 00:00:00 2001 From: Ivana Kellyer Date: Wed, 9 Apr 2025 10:39:55 +0200 Subject: [PATCH] Add deprecation warning for same_process_as_parent --- sentry_sdk/tracing.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/sentry_sdk/tracing.py b/sentry_sdk/tracing.py index 13d9f63d5e..ab1a7a8fdf 100644 --- a/sentry_sdk/tracing.py +++ b/sentry_sdk/tracing.py @@ -323,6 +323,13 @@ def __init__( self.scope = self.scope or hub.scope + if same_process_as_parent is not None: + warnings.warn( + "The `same_process_as_parent` parameter is deprecated.", + DeprecationWarning, + stacklevel=2, + ) + if start_timestamp is None: start_timestamp = datetime.now(timezone.utc) elif isinstance(start_timestamp, float):