diff --git a/javascript/sentry-conventions/src/attributes.ts b/javascript/sentry-conventions/src/attributes.ts index 4e25cd9b..272b6eb6 100644 --- a/javascript/sentry-conventions/src/attributes.ts +++ b/javascript/sentry-conventions/src/attributes.ts @@ -7819,6 +7819,8 @@ export type GEN_AI_PROVIDER_NAME_TYPE = string; * Attribute defined in OTEL: No * Visibility: public * + * Aliases: {@link GEN_AI_TOOL_DEFINITIONS} `gen_ai.tool.definitions` + * * @deprecated Use {@link GEN_AI_TOOL_DEFINITIONS} (gen_ai.tool.definitions) instead * @example "[{\"name\": \"get_weather\", \"description\": \"Get the weather for a given location\"}, {\"name\": \"get_news\", \"description\": \"Get the news for a given topic\"}]" */ @@ -8476,6 +8478,8 @@ export type GEN_AI_TOOL_CALL_RESULT_TYPE = string; * Attribute defined in OTEL: Yes * Visibility: public * + * Aliases: {@link GEN_AI_REQUEST_AVAILABLE_TOOLS} `gen_ai.request.available_tools` + * * @example "[{\"type\": \"function\", \"name\": \"get_current_weather\", \"description\": \"Get the current weather in a given location\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"string\", \"description\": \"The city and state, e.g. San Francisco, CA\"}, \"unit\": {\"type\": \"string\", \"enum\": [\"celsius\", \"fahrenheit\"]}}, \"required\": [\"location\", \"unit\"]}}]" */ export const GEN_AI_TOOL_DEFINITIONS = 'gen_ai.tool.definitions'; @@ -25748,7 +25752,9 @@ export const ATTRIBUTE_METADATA: Record = { replacement: 'gen_ai.tool.definitions', status: 'normalize', }, + aliases: ['gen_ai.tool.definitions'], changelog: [ + { version: 'next', description: 'Added gen_ai.tool.definitions as an alias' }, { version: '0.4.0', prs: [221] }, { version: '0.1.0', prs: [63, 127] }, ], @@ -26233,7 +26239,11 @@ export const ATTRIBUTE_METADATA: Record = { visibility: 'public', example: '[{"type": "function", "name": "get_current_weather", "description": "Get the current weather in a given location", "parameters": {"type": "object", "properties": {"location": {"type": "string", "description": "The city and state, e.g. San Francisco, CA"}, "unit": {"type": "string", "enum": ["celsius", "fahrenheit"]}}, "required": ["location", "unit"]}}]', - changelog: [{ version: '0.4.0', prs: [221] }], + aliases: ['gen_ai.request.available_tools'], + changelog: [ + { version: 'next', description: 'Added gen_ai.request.available_tools as an alias' }, + { version: '0.4.0', prs: [221] }, + ], }, 'gen_ai.tool.description': { brief: 'The description of the tool being used.', diff --git a/model/attributes/gen_ai/gen_ai__request__available_tools.json b/model/attributes/gen_ai/gen_ai__request__available_tools.json index 63861884..8992b5ae 100644 --- a/model/attributes/gen_ai/gen_ai__request__available_tools.json +++ b/model/attributes/gen_ai/gen_ai__request__available_tools.json @@ -7,13 +7,17 @@ }, "is_in_otel": false, "example": "[{\"name\": \"get_weather\", \"description\": \"Get the weather for a given location\"}, {\"name\": \"get_news\", \"description\": \"Get the news for a given topic\"}]", - "alias": [], + "alias": ["gen_ai.tool.definitions"], "deprecation": { "_status": "normalize", "replacement": "gen_ai.tool.definitions" }, "visibility": "public", "changelog": [ + { + "version": "next", + "description": "Added gen_ai.tool.definitions as an alias" + }, { "version": "0.4.0", "prs": [221] diff --git a/model/attributes/gen_ai/gen_ai__tool__definitions.json b/model/attributes/gen_ai/gen_ai__tool__definitions.json index 0f9d4e42..8da96eaf 100644 --- a/model/attributes/gen_ai/gen_ai__tool__definitions.json +++ b/model/attributes/gen_ai/gen_ai__tool__definitions.json @@ -7,8 +7,13 @@ }, "is_in_otel": true, "example": "[{\"type\": \"function\", \"name\": \"get_current_weather\", \"description\": \"Get the current weather in a given location\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"string\", \"description\": \"The city and state, e.g. San Francisco, CA\"}, \"unit\": {\"type\": \"string\", \"enum\": [\"celsius\", \"fahrenheit\"]}}, \"required\": [\"location\", \"unit\"]}}]", + "alias": ["gen_ai.request.available_tools"], "visibility": "public", "changelog": [ + { + "version": "next", + "description": "Added gen_ai.request.available_tools as an alias" + }, { "version": "0.4.0", "prs": [221] diff --git a/python/src/sentry_conventions/attributes.py b/python/src/sentry_conventions/attributes.py index b2db7bcb..4a31cdc4 100644 --- a/python/src/sentry_conventions/attributes.py +++ b/python/src/sentry_conventions/attributes.py @@ -4791,6 +4791,7 @@ class ATTRIBUTE_NAMES(metaclass=_AttributeNamesMeta): Apply Scrubbing: manual Defined in OTEL: No Visibility: public + Aliases: gen_ai.tool.definitions DEPRECATED: Use gen_ai.tool.definitions instead Example: "[{\"name\": \"get_weather\", \"description\": \"Get the weather for a given location\"}, {\"name\": \"get_news\", \"description\": \"Get the news for a given topic\"}]" """ @@ -5175,6 +5176,7 @@ class ATTRIBUTE_NAMES(metaclass=_AttributeNamesMeta): Apply Scrubbing: manual Defined in OTEL: Yes Visibility: public + Aliases: gen_ai.request.available_tools Example: "[{\"type\": \"function\", \"name\": \"get_current_weather\", \"description\": \"Get the current weather in a given location\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"string\", \"description\": \"The city and state, e.g. San Francisco, CA\"}, \"unit\": {\"type\": \"string\", \"enum\": [\"celsius\", \"fahrenheit\"]}}, \"required\": [\"location\", \"unit\"]}}]" """ @@ -17309,7 +17311,11 @@ class ATTRIBUTE_NAMES(metaclass=_AttributeNamesMeta): deprecation=DeprecationInfo( replacement="gen_ai.tool.definitions", status=DeprecationStatus.NORMALIZE ), + aliases=["gen_ai.tool.definitions"], changelog=[ + ChangelogEntry( + version="next", description="Added gen_ai.tool.definitions as an alias" + ), ChangelogEntry(version="0.4.0", prs=[221]), ChangelogEntry(version="0.1.0", prs=[63, 127]), ], @@ -17850,7 +17856,12 @@ class ATTRIBUTE_NAMES(metaclass=_AttributeNamesMeta): is_in_otel=True, visibility=Visibility.PUBLIC, example='[{"type": "function", "name": "get_current_weather", "description": "Get the current weather in a given location", "parameters": {"type": "object", "properties": {"location": {"type": "string", "description": "The city and state, e.g. San Francisco, CA"}, "unit": {"type": "string", "enum": ["celsius", "fahrenheit"]}}, "required": ["location", "unit"]}}]', + aliases=["gen_ai.request.available_tools"], changelog=[ + ChangelogEntry( + version="next", + description="Added gen_ai.request.available_tools as an alias", + ), ChangelogEntry(version="0.4.0", prs=[221]), ], ),