Skip to content

Commit a3b51a4

Browse files
authored
Merge branch 'master' into ivana/gql-adapt-to-document-change
2 parents 06435f3 + b19e086 commit a3b51a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sentry_sdk/ai/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,6 @@ def get_start_span_function():
4444
# type: () -> Callable[..., Any]
4545
current_span = sentry_sdk.get_current_span()
4646
transaction_exists = (
47-
current_span is not None and current_span.containing_transaction == current_span
47+
current_span is not None and current_span.containing_transaction is not None
4848
)
4949
return sentry_sdk.start_span if transaction_exists else sentry_sdk.start_transaction

0 commit comments

Comments
 (0)