diff --git a/javascript/sentry-conventions/src/attributes.ts b/javascript/sentry-conventions/src/attributes.ts index 6e68f75d..853f52ea 100644 --- a/javascript/sentry-conventions/src/attributes.ts +++ b/javascript/sentry-conventions/src/attributes.ts @@ -3811,6 +3811,7 @@ export type GEN_AI_TOOL_OUTPUT_TYPE = string; * * Attribute defined in OTEL: Yes * + * @deprecated - The gen_ai.tool.type attribute is deprecated and should no longer be set. * @example "function" */ export const GEN_AI_TOOL_TYPE = 'gen_ai.tool.type'; @@ -13529,6 +13530,9 @@ export const ATTRIBUTE_METADATA: Record = { }, isInOtel: true, example: 'function', + deprecation: { + reason: 'The gen_ai.tool.type attribute is deprecated and should no longer be set.', + }, changelog: [{ version: '0.1.0', prs: [62, 127] }], }, [GEN_AI_USAGE_COMPLETION_TOKENS]: { diff --git a/model/attributes/gen_ai/gen_ai__tool__type.json b/model/attributes/gen_ai/gen_ai__tool__type.json index 2d10c916..f9318212 100644 --- a/model/attributes/gen_ai/gen_ai__tool__type.json +++ b/model/attributes/gen_ai/gen_ai__tool__type.json @@ -7,6 +7,10 @@ }, "is_in_otel": true, "example": "function", + "deprecation": { + "_status": null, + "reason": "The gen_ai.tool.type attribute is deprecated and should no longer be set." + }, "changelog": [ { "version": "0.1.0", diff --git a/python/src/sentry_conventions/attributes.py b/python/src/sentry_conventions/attributes.py index a1602e9b..745c1f2b 100644 --- a/python/src/sentry_conventions/attributes.py +++ b/python/src/sentry_conventions/attributes.py @@ -165,6 +165,7 @@ class _AttributeNamesMeta(type): "GEN_AI_TOOL_INPUT", "GEN_AI_TOOL_MESSAGE", "GEN_AI_TOOL_OUTPUT", + "GEN_AI_TOOL_TYPE", "GEN_AI_USAGE_COMPLETION_TOKENS", "GEN_AI_USAGE_PROMPT_TOKENS", "HARDWARECONCURRENCY", @@ -2260,6 +2261,7 @@ class ATTRIBUTE_NAMES(metaclass=_AttributeNamesMeta): Type: str Contains PII: maybe Defined in OTEL: Yes + DEPRECATED: No replacement at this time - The gen_ai.tool.type attribute is deprecated and should no longer be set. Example: "function" """ @@ -7889,6 +7891,9 @@ class ATTRIBUTE_NAMES(metaclass=_AttributeNamesMeta): pii=PiiInfo(isPii=IsPii.MAYBE), is_in_otel=True, example="function", + deprecation=DeprecationInfo( + reason="The gen_ai.tool.type attribute is deprecated and should no longer be set." + ), changelog=[ ChangelogEntry(version="0.1.0", prs=[62, 127]), ], diff --git a/shared/deprecated_attributes.json b/shared/deprecated_attributes.json index 9e75c710..90725af3 100644 --- a/shared/deprecated_attributes.json +++ b/shared/deprecated_attributes.json @@ -1757,6 +1757,26 @@ } ] }, + { + "key": "gen_ai.tool.type", + "brief": "The type of tool being used.", + "type": "string", + "pii": { + "key": "maybe" + }, + "is_in_otel": true, + "example": "function", + "deprecation": { + "_status": null, + "reason": "The gen_ai.tool.type attribute is deprecated and should no longer be set." + }, + "changelog": [ + { + "version": "0.1.0", + "prs": [62, 127] + } + ] + }, { "key": "gen_ai.usage.completion_tokens", "brief": "The number of tokens used in the GenAI response (completion).",