diff --git a/sentry_sdk/integrations/google_genai/utils.py b/sentry_sdk/integrations/google_genai/utils.py index b2d6499843..a06ba55c0f 100644 --- a/sentry_sdk/integrations/google_genai/utils.py +++ b/sentry_sdk/integrations/google_genai/utils.py @@ -881,8 +881,8 @@ def set_span_data_for_response( finish_reasons = extract_finish_reasons(response) if finish_reasons: - set_data_normalized( - span, SPANDATA.GEN_AI_RESPONSE_FINISH_REASONS, finish_reasons + span.set_data( + SPANDATA.GEN_AI_RESPONSE_FINISH_REASONS, json.dumps(finish_reasons) ) if getattr(response, "response_id", None):