From f2ec09fbbde5e48c58f581b112f41ee320093782 Mon Sep 17 00:00:00 2001 From: Alexander Alderman Webb Date: Mon, 23 Feb 2026 13:41:54 +0100 Subject: [PATCH] ref(langgraph): Remove set_data_normalized for primitive attributes --- sentry_sdk/integrations/langgraph.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/sentry_sdk/integrations/langgraph.py b/sentry_sdk/integrations/langgraph.py index e5ea12b90a..21295c5e79 100644 --- a/sentry_sdk/integrations/langgraph.py +++ b/sentry_sdk/integrations/langgraph.py @@ -347,7 +347,7 @@ def _set_response_model_name(span: "sentry_sdk.tracing.Span", messages: "Any") - if model_name is None: return - set_data_normalized(span, SPANDATA.GEN_AI_RESPONSE_MODEL, model_name) + span.set_data(SPANDATA.GEN_AI_RESPONSE_MODEL, model_name) def _set_response_attributes( @@ -378,9 +378,7 @@ def _set_response_attributes( tool_calls = _extract_tool_calls(new_messages) if tool_calls: - set_data_normalized( - span, + span.set_data( SPANDATA.GEN_AI_RESPONSE_TOOL_CALLS, safe_serialize(tool_calls), - unpack=False, )