We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ca12bbf commit b19e086Copy full SHA for b19e086
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