From eb9748b520db3f4daad1353fd823a2d500b1f1aa Mon Sep 17 00:00:00 2001 From: Alexander Alderman Webb Date: Mon, 23 Feb 2026 11:30:33 +0100 Subject: [PATCH] ref(huggingface-hub): Remove set_data_normalized for the gen_ai.response.finish_reasons attribute --- sentry_sdk/integrations/huggingface_hub.py | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/sentry_sdk/integrations/huggingface_hub.py b/sentry_sdk/integrations/huggingface_hub.py index 8509cadefa..1469fef5cc 100644 --- a/sentry_sdk/integrations/huggingface_hub.py +++ b/sentry_sdk/integrations/huggingface_hub.py @@ -184,8 +184,7 @@ def new_huggingface_task(*args: "Any", **kwargs: "Any") -> "Any": span.set_data(SPANDATA.GEN_AI_RESPONSE_MODEL, response_model) if finish_reason is not None: - set_data_normalized( - span, + span.set_data( SPANDATA.GEN_AI_RESPONSE_FINISH_REASONS, finish_reason, ) @@ -258,8 +257,7 @@ def new_details_iterator() -> "Iterable[Any]": yield chunk if finish_reason is not None: - set_data_normalized( - span, + span.set_data( SPANDATA.GEN_AI_RESPONSE_FINISH_REASONS, finish_reason, ) @@ -337,8 +335,7 @@ def new_iterator() -> "Iterable[str]": ) if finish_reason is not None: - set_data_normalized( - span, + span.set_data( SPANDATA.GEN_AI_RESPONSE_FINISH_REASONS, finish_reason, )