Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions javascript/sentry-conventions/src/attributes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -13529,6 +13530,9 @@ export const ATTRIBUTE_METADATA: Record<AttributeName, AttributeMetadata> = {
},
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]: {
Expand Down
4 changes: 4 additions & 0 deletions model/attributes/gen_ai/gen_ai__tool__type.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
5 changes: 5 additions & 0 deletions python/src/sentry_conventions/attributes.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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"
"""

Expand Down Expand Up @@ -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]),
],
Expand Down
20 changes: 20 additions & 0 deletions shared/deprecated_attributes.json
Original file line number Diff line number Diff line change
Expand Up @@ -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).",
Expand Down
Loading