We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a8f6af1 commit a6cec41Copy full SHA for a6cec41
sentry_sdk/scope.py
@@ -173,9 +173,8 @@ def transaction(self, value):
173
# transaction name or transaction (self._span) depending on the type of
174
# the value argument.
175
self._transaction = value
176
- span = self._span
177
- if span and isinstance(span, Transaction):
178
- span.name = value
+ if self._span and self._span.containing_transaction:
+ self._span.containing_transaction.name = value
179
180
@_attr_setter
181
def user(self, value):
0 commit comments