From bda9deba2adf0f3647355111695817ca7efe4c29 Mon Sep 17 00:00:00 2001 From: Daniel Szoke Date: Mon, 22 Apr 2024 16:38:18 +0200 Subject: [PATCH] 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`. --- sentry_sdk/tracing.py | 1 - 1 file changed, 1 deletion(-) diff --git a/sentry_sdk/tracing.py b/sentry_sdk/tracing.py index 160372912f..c2ca5de171 100644 --- a/sentry_sdk/tracing.py +++ b/sentry_sdk/tracing.py @@ -747,7 +747,6 @@ def finish(self, hub=None, end_timestamp=None): # We have no active client and therefore nowhere to send this transaction. return None - # This is a de facto proxy for checking if sampled = False if self._span_recorder is None: logger.debug("Discarding transaction because sampled = False")