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 cebe0f4 commit efe9e39Copy full SHA for efe9e39
sentry_sdk/integrations/openai_agents/utils.py
@@ -31,10 +31,10 @@ def _capture_exception(exc):
31
def _get_start_span_function():
32
# type: () -> Callable[..., Any]
33
current_span = sentry_sdk.get_current_span()
34
- is_transaction = (
+ transaction_exists = (
35
current_span is not None and current_span.containing_transaction == current_span
36
)
37
- return sentry_sdk.start_span if is_transaction else sentry_sdk.start_transaction
+ return sentry_sdk.start_span if transaction_exists else sentry_sdk.start_transaction
38
39
40
def _set_agent_data(span, agent):
0 commit comments