Skip to content

Commit

Permalink
ref(tracing): Rename _possibly_started function
Browse files Browse the repository at this point in the history
The previous name, `_possibly_stated`, contains a typo, which this change fixes.

Co-authored-by: Anton Pirker <anton.pirker@sentry.io>
  • Loading branch information
szokeasaurusrex and antonpirker committed Apr 25, 2024
1 parent 881304d commit 84ab96a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sentry_sdk/tracing.py
Expand Up @@ -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.
Expand All @@ -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
Expand Down

0 comments on commit 84ab96a

Please sign in to comment.