diff --git a/javascript/sentry-conventions/src/op.ts b/javascript/sentry-conventions/src/op.ts index e82b9341..b23bab62 100644 --- a/javascript/sentry-conventions/src/op.ts +++ b/javascript/sentry-conventions/src/op.ts @@ -363,6 +363,8 @@ export const GEN_AI_CREATE_AGENT = 'gen_ai.create_agent'; /** * An interaction with a generative AI model through a responses API + * + * @deprecated Use {@link GEN_AI_CHAT} (gen_ai.chat) instead - responses is not a well-defined value for gen_ai.operation.name */ export const GEN_AI_RESPONSES = 'gen_ai.responses'; diff --git a/model/op/gen_ai.json b/model/op/gen_ai.json index cac23444..16c81f32 100644 --- a/model/op/gen_ai.json +++ b/model/op/gen_ai.json @@ -47,7 +47,11 @@ }, { "name": "gen_ai.responses", - "description": "An interaction with a generative AI model through a responses API" + "description": "An interaction with a generative AI model through a responses API", + "deprecation": { + "replacement": "gen_ai.chat", + "note": "responses is not a well-defined value for gen_ai.operation.name" + } }, { "name": "gen_ai.text_completion", diff --git a/rust/src/op.rs b/rust/src/op.rs index 9c6aefec..83aa0f8a 100644 --- a/rust/src/op.rs +++ b/rust/src/op.rs @@ -235,6 +235,7 @@ pub const GEN_AI_EVALUATE: &str = "gen_ai.evaluate"; pub const GEN_AI_CREATE_AGENT: &str = "gen_ai.create_agent"; /// An interaction with a generative AI model through a responses API +#[deprecated(note = "Use `GEN_AI_CHAT` (gen_ai.chat) instead - responses is not a well-defined value for gen_ai.operation.name")] pub const GEN_AI_RESPONSES: &str = "gen_ai.responses"; /// A text completion request to a generative AI model