Skip to content

Commit 80c9740

Browse files
fix set_on_span arguments
1 parent 324c8ba commit 80c9740

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

sentry_sdk/integrations/langgraph.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -447,11 +447,11 @@ def _set_response_attributes(
447447

448448
llm_response_text = _extract_llm_response_text(new_messages)
449449
if llm_response_text:
450-
set_on_span(span, SPANDATA.GEN_AI_RESPONSE_TEXT, llm_response_text)
450+
set_on_span(SPANDATA.GEN_AI_RESPONSE_TEXT, llm_response_text)
451451
elif new_messages:
452-
set_on_span(span, SPANDATA.GEN_AI_RESPONSE_TEXT, new_messages)
452+
set_on_span(SPANDATA.GEN_AI_RESPONSE_TEXT, new_messages)
453453
else:
454-
set_on_span(span, SPANDATA.GEN_AI_RESPONSE_TEXT, result)
454+
set_on_span(SPANDATA.GEN_AI_RESPONSE_TEXT, result)
455455

456456
tool_calls = _extract_tool_calls(new_messages)
457457
if tool_calls:

0 commit comments

Comments
 (0)