From 84ab96a24d8d26a411388617519cac01dd24cbee Mon Sep 17 00:00:00 2001 From: Daniel Szoke <7881302+szokeasaurusrex@users.noreply.github.com> Date: Tue, 23 Apr 2024 11:13:53 +0200 Subject: [PATCH] ref(tracing): Rename `_possibly_started` function The previous name, `_possibly_stated`, contains a typo, which this change fixes. Co-authored-by: Anton Pirker --- sentry_sdk/tracing.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sentry_sdk/tracing.py b/sentry_sdk/tracing.py index 09c7ad00cc..59e7576aae 100644 --- a/sentry_sdk/tracing.py +++ b/sentry_sdk/tracing.py @@ -695,7 +695,7 @@ def __repr__(self): ) ) - def _possibly_stated(self): + def _possibly_started(self): # type: () -> bool """Returns whether the transaction might have been started. @@ -709,7 +709,7 @@ def _possibly_stated(self): def __enter__(self): # type: () -> Transaction - if not self._possibly_stated(): + if not self._possibly_started(): logger.warning( """Transaction was entered without being started with sentry_sdk.start_transaction. The transaction will not be sent to Sentry. To fix, start the transaction by