We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 06435f3 + b19e086 commit a3b51a4Copy full SHA for a3b51a4
sentry_sdk/ai/utils.py
@@ -44,6 +44,6 @@ def get_start_span_function():
44
# type: () -> Callable[..., Any]
45
current_span = sentry_sdk.get_current_span()
46
transaction_exists = (
47
- current_span is not None and current_span.containing_transaction == current_span
+ current_span is not None and current_span.containing_transaction is not None
48
)
49
return sentry_sdk.start_span if transaction_exists else sentry_sdk.start_transaction
0 commit comments