We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bba9174 commit 2eabf91Copy full SHA for 2eabf91
1 file changed
sentry_sdk/tracing.py
@@ -680,7 +680,7 @@ def finish(
680
# Copy conversation_id from scope to span data if this is an AI span
681
conversation_id = scope.get_conversation_id()
682
if conversation_id:
683
- has_ai_op = "gen_ai.operation.name" in self._data
+ has_ai_op = SPANDATA.GEN_AI_OPERATION_NAME in self._data
684
is_ai_span_op = self.op is not None and (
685
self.op.startswith("ai.") or self.op.startswith("gen_ai.")
686
)
0 commit comments