We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 324c8ba commit 80c9740Copy full SHA for 80c9740
1 file changed
sentry_sdk/integrations/langgraph.py
@@ -447,11 +447,11 @@ def _set_response_attributes(
447
448
llm_response_text = _extract_llm_response_text(new_messages)
449
if llm_response_text:
450
- set_on_span(span, SPANDATA.GEN_AI_RESPONSE_TEXT, llm_response_text)
+ set_on_span(SPANDATA.GEN_AI_RESPONSE_TEXT, llm_response_text)
451
elif new_messages:
452
- set_on_span(span, SPANDATA.GEN_AI_RESPONSE_TEXT, new_messages)
+ set_on_span(SPANDATA.GEN_AI_RESPONSE_TEXT, new_messages)
453
else:
454
- set_on_span(span, SPANDATA.GEN_AI_RESPONSE_TEXT, result)
+ set_on_span(SPANDATA.GEN_AI_RESPONSE_TEXT, result)
455
456
tool_calls = _extract_tool_calls(new_messages)
457
if tool_calls:
0 commit comments