Skip to content

Commit 42e3ce2

Browse files
remove stray isinstance check
1 parent e187474 commit 42e3ce2

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

‎sentry_sdk/integrations/openai_agents/spans/invoke_agent.py‎

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,4 @@ def update_invoke_agent_span(
117117
# Add conversation ID from agent
118118
conv_id = getattr(agent, "_sentry_conversation_id", None)
119119
if conv_id:
120-
if isinstance(span, StreamedSpan):
121-
span.set_attribute(SPANDATA.GEN_AI_CONVERSATION_ID, conv_id)
122-
else:
123-
span.set_data(SPANDATA.GEN_AI_CONVERSATION_ID, conv_id)
120+
span.set_attribute(SPANDATA.GEN_AI_CONVERSATION_ID, conv_id)

0 commit comments

Comments
 (0)