Skip to content

Commit a37f6a5

Browse files
ref(google-genai): Remove set_data_normalized for gen_ai.response.finish_reasons attribute
1 parent 963b4dd commit a37f6a5

File tree

1 file changed

+2
-2
lines changed
  • sentry_sdk/integrations/google_genai

1 file changed

+2
-2
lines changed

sentry_sdk/integrations/google_genai/utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -881,8 +881,8 @@ def set_span_data_for_response(
881881

882882
finish_reasons = extract_finish_reasons(response)
883883
if finish_reasons:
884-
set_data_normalized(
885-
span, SPANDATA.GEN_AI_RESPONSE_FINISH_REASONS, finish_reasons
884+
span.set_data(
885+
SPANDATA.GEN_AI_RESPONSE_FINISH_REASONS, json.dumps(finish_reasons)
886886
)
887887

888888
if getattr(response, "response_id", None):

0 commit comments

Comments
 (0)