From b46331ce9324d1a92a91948b6c143f1b91312231 Mon Sep 17 00:00:00 2001 From: Alexander Alderman Webb Date: Fri, 20 Feb 2026 10:32:21 +0100 Subject: [PATCH] chore: Deprecate gen_ai.choice and gen_ai.user.message --- sentry_sdk/consts.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/sentry_sdk/consts.py b/sentry_sdk/consts.py index e54e42625c..3db93ca04d 100644 --- a/sentry_sdk/consts.py +++ b/sentry_sdk/consts.py @@ -473,6 +473,9 @@ class SPANDATA: GEN_AI_CHOICE = "gen_ai.choice" """ + .. deprecated:: + This attribute is deprecated. Use the gen_ai.output.messages attribute instead. + The model's response message. Example: "The weather in Paris is rainy and overcast, with temperatures around 57°F" """ @@ -677,6 +680,9 @@ class SPANDATA: GEN_AI_USER_MESSAGE = "gen_ai.user.message" """ + .. deprecated:: + This attribute is deprecated. Use the gen_ai.input.messages attribute instead. + The user message passed to the model. Example: "What's the weather in Paris?" """