Skip to content

Commit 3b34257

Browse files
committed
Deprecated old transaction setter
1 parent 078a519 commit 3b34257

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

sentry_sdk/scope.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,9 @@ def transaction(self):
164164
def transaction(self, value):
165165
# type: (Any) -> None
166166
# would be type: (Optional[str]) -> None, see https://github.com/python/mypy/issues/3004
167-
"""When set this forces a specific transaction name to be set."""
167+
"""When set this forces a specific transaction name to be set.
168+
169+
Deprecated: use set_transaction_name instead."""
168170
# XXX: the docstring above is misleading. The implementation of
169171
# apply_to_event prefers an existing value of event.transaction over
170172
# anything set in the scope.

0 commit comments

Comments
 (0)