Skip to content

Commit f2ec09f

Browse files
ref(langgraph): Remove set_data_normalized for primitive attributes
1 parent 963b4dd commit f2ec09f

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

sentry_sdk/integrations/langgraph.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ def _set_response_model_name(span: "sentry_sdk.tracing.Span", messages: "Any") -
347347
if model_name is None:
348348
return
349349

350-
set_data_normalized(span, SPANDATA.GEN_AI_RESPONSE_MODEL, model_name)
350+
span.set_data(SPANDATA.GEN_AI_RESPONSE_MODEL, model_name)
351351

352352

353353
def _set_response_attributes(
@@ -378,9 +378,7 @@ def _set_response_attributes(
378378

379379
tool_calls = _extract_tool_calls(new_messages)
380380
if tool_calls:
381-
set_data_normalized(
382-
span,
381+
span.set_data(
383382
SPANDATA.GEN_AI_RESPONSE_TOOL_CALLS,
384383
safe_serialize(tool_calls),
385-
unpack=False,
386384
)

0 commit comments

Comments
 (0)