Skip to content

Commit 00c2bc7

Browse files
ref(tracing): Rename _possibly_started function
The previous name, `_possible_stated`, contains a typo, which this change fixes. Co-authored-by: Anton Pirker <[email protected]>
1 parent 32ec15d commit 00c2bc7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sentry_sdk/tracing.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -695,7 +695,7 @@ def __repr__(self):
695695
)
696696
)
697697

698-
def _possibly_stated(self):
698+
def _possibly_started(self):
699699
# type: () -> bool
700700
"""Returns whether the transaction might have been started.
701701
@@ -709,7 +709,7 @@ def _possibly_stated(self):
709709

710710
def __enter__(self):
711711
# type: () -> Transaction
712-
if not self._possibly_stated():
712+
if not self._possibly_started():
713713
logger.warning(
714714
"""Transaction was entered without being started with sentry_sdk.start_transaction.
715715
The transaction will not be sent to Sentry. To fix, start the transaction by

0 commit comments

Comments
 (0)