Skip to content

Commit 2eabf91

Browse files
committed
fix: address review comment
1 parent bba9174 commit 2eabf91

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

sentry_sdk/tracing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -680,7 +680,7 @@ def finish(
680680
# Copy conversation_id from scope to span data if this is an AI span
681681
conversation_id = scope.get_conversation_id()
682682
if conversation_id:
683-
has_ai_op = "gen_ai.operation.name" in self._data
683+
has_ai_op = SPANDATA.GEN_AI_OPERATION_NAME in self._data
684684
is_ai_span_op = self.op is not None and (
685685
self.op.startswith("ai.") or self.op.startswith("gen_ai.")
686686
)

0 commit comments

Comments
 (0)