Skip to content

Commit bda9deb

Browse files
docs(tracing): Delete inaccurate comment
`sampled` being set to `False` is not the only reason why the `_span_recorder` might be `None`. Another explanation is that the transaction was not started via `start_transaction`.
1 parent 6a73368 commit bda9deb

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

sentry_sdk/tracing.py

-1
Original file line numberDiff line numberDiff line change
@@ -747,7 +747,6 @@ def finish(self, hub=None, end_timestamp=None):
747747
# We have no active client and therefore nowhere to send this transaction.
748748
return None
749749

750-
# This is a de facto proxy for checking if sampled = False
751750
if self._span_recorder is None:
752751
logger.debug("Discarding transaction because sampled = False")
753752

0 commit comments

Comments
 (0)