Skip to content

Commit 67ea4cd

Browse files
committed
chore: Deprecate span args
1 parent adcfa0f commit 67ea4cd

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

sentry_sdk/tracing.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -323,6 +323,20 @@ def __init__(
323323

324324
self.scope = self.scope or hub.scope
325325

326+
if same_process_as_parent is not None:
327+
warnings.warn(
328+
"The `same_process_as_parent` parameter is deprecated.",
329+
DeprecationWarning,
330+
stacklevel=2,
331+
)
332+
333+
if sampled is not None:
334+
warnings.warn(
335+
"The `sampled` parameter is deprecated. Please use a traces_sampler to control sampling.",
336+
DeprecationWarning,
337+
stacklevel=2,
338+
)
339+
326340
if start_timestamp is None:
327341
start_timestamp = datetime.now(timezone.utc)
328342
elif isinstance(start_timestamp, float):

0 commit comments

Comments
 (0)