Skip to content

Commit 0e85e49

Browse files
authored
feat(gen_ai): add other operation type (#257)
1 parent 1693576 commit 0e85e49

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

javascript/sentry-conventions/src/attributes.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2268,7 +2268,7 @@ export type GEN_AI_OPERATION_NAME_TYPE = string;
22682268
// Path: model/attributes/gen_ai/gen_ai__operation__type.json
22692269

22702270
/**
2271-
* The type of AI operation. Must be one of 'agent', 'ai_client', 'tool', 'handoff', 'guardrail'. Makes querying for spans in the UI easier. `gen_ai.operation.type`
2271+
* The type of AI operation. Must be one of 'agent' (invoke_agent and create_agent spans), 'ai_client' (any LLM call), 'tool' (execute_tool spans), 'handoff' (handoff spans), 'other' (input and output processors, skill loading, guardrails etc.) . Added during ingestion based on span.op and gen_ai.operation.type. Used to filter and aggregate data in the UI `gen_ai.operation.type`
22722272
*
22732273
* Attribute Value Type: `string` {@link GEN_AI_OPERATION_TYPE_TYPE}
22742274
*
@@ -10901,7 +10901,7 @@ export const ATTRIBUTE_METADATA: Record<AttributeName, AttributeMetadata> = {
1090110901
},
1090210902
[GEN_AI_OPERATION_TYPE]: {
1090310903
brief:
10904-
"The type of AI operation. Must be one of 'agent', 'ai_client', 'tool', 'handoff', 'guardrail'. Makes querying for spans in the UI easier.",
10904+
"The type of AI operation. Must be one of 'agent' (invoke_agent and create_agent spans), 'ai_client' (any LLM call), 'tool' (execute_tool spans), 'handoff' (handoff spans), 'other' (input and output processors, skill loading, guardrails etc.) . Added during ingestion based on span.op and gen_ai.operation.type. Used to filter and aggregate data in the UI",
1090510905
type: 'string',
1090610906
pii: {
1090710907
isPii: 'maybe',

model/attributes/gen_ai/gen_ai__operation__type.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"key": "gen_ai.operation.type",
3-
"brief": "The type of AI operation. Must be one of 'agent', 'ai_client', 'tool', 'handoff', 'guardrail'. Makes querying for spans in the UI easier.",
3+
"brief": "The type of AI operation. Must be one of 'agent' (invoke_agent and create_agent spans), 'ai_client' (any LLM call), 'tool' (execute_tool spans), 'handoff' (handoff spans), 'other' (input and output processors, skill loading, guardrails etc.) . Added during ingestion based on span.op and gen_ai.operation.type. Used to filter and aggregate data in the UI",
44
"type": "string",
55
"pii": {
66
"key": "maybe"

python/src/sentry_conventions/attributes.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1352,7 +1352,7 @@ class ATTRIBUTE_NAMES(metaclass=_AttributeNamesMeta):
13521352

13531353
# Path: model/attributes/gen_ai/gen_ai__operation__type.json
13541354
GEN_AI_OPERATION_TYPE: Literal["gen_ai.operation.type"] = "gen_ai.operation.type"
1355-
"""The type of AI operation. Must be one of 'agent', 'ai_client', 'tool', 'handoff', 'guardrail'. Makes querying for spans in the UI easier.
1355+
"""The type of AI operation. Must be one of 'agent' (invoke_agent and create_agent spans), 'ai_client' (any LLM call), 'tool' (execute_tool spans), 'handoff' (handoff spans), 'other' (input and output processors, skill loading, guardrails etc.) . Added during ingestion based on span.op and gen_ai.operation.type. Used to filter and aggregate data in the UI
13561356
13571357
Type: str
13581358
Contains PII: maybe
@@ -5722,7 +5722,7 @@ class ATTRIBUTE_NAMES(metaclass=_AttributeNamesMeta):
57225722
example="chat",
57235723
),
57245724
"gen_ai.operation.type": AttributeMetadata(
5725-
brief="The type of AI operation. Must be one of 'agent', 'ai_client', 'tool', 'handoff', 'guardrail'. Makes querying for spans in the UI easier.",
5725+
brief="The type of AI operation. Must be one of 'agent' (invoke_agent and create_agent spans), 'ai_client' (any LLM call), 'tool' (execute_tool spans), 'handoff' (handoff spans), 'other' (input and output processors, skill loading, guardrails etc.) . Added during ingestion based on span.op and gen_ai.operation.type. Used to filter and aggregate data in the UI",
57265726
type=AttributeType.STRING,
57275727
pii=PiiInfo(isPii=IsPii.MAYBE),
57285728
is_in_otel=False,

0 commit comments

Comments
 (0)