@@ -16,7 +16,7 @@ For your AI agents data to show up in the Sentry [AI Agents Insights](https://se
16
16
17
17
Describes AI agent invocation.
18
18
19
- - The spans ` op ` SHOULD be ` "gen_ai.invoke_agent" ` .
19
+ - The spans ` op ` MUST be ` "gen_ai.invoke_agent" ` .
20
20
- The span ` name ` SHOULD be ` "invoke_agent {gen_ai.agent.name}" ` .
21
21
- The ` gen_ai.operation.name ` attribute MUST be ` "invoke_agent" ` .
22
22
- The ` gen_ai.agent.name ` attribute SHOULD be set to the agents name. (e.g. ` "Weather Agent" ` )
@@ -49,7 +49,7 @@ Additional attributes on the span:
49
49
This span represents a request to an AI model or service that generates a response or requests a tool call based on the input prompt.
50
50
51
51
- The span ` op ` MUST be ` "gen_ai.{gen_ai.operation.name}" ` . (e.g. ` "gen_ai.chat" ` )
52
- - The span ` name ` MUST be ` {gen_ai.operation.name} {gen_ai.request.model}" ` . (e.g. ` "chat o3-mini" ` )
52
+ - The span ` name ` SHOULD be ` {gen_ai.operation.name} {gen_ai.request.model}" ` . (e.g. ` "chat o3-mini" ` )
53
53
- All [ Common Span Attributes] ( #common-span-attributes ) SHOULD be set (all ` required ` common attributes MUST be set).
54
54
55
55
Additional attributes on the span:
@@ -79,7 +79,7 @@ Additional attributes on the span:
79
79
Describes a tool execution.
80
80
81
81
- The spans ` op ` MUST be ` "gen_ai.execute_tool" ` .
82
- - The spans ` name ` MUST be ` "gen_ai.execute_tool {gen_ai.tool.name}" ` . (e.g. ` "gen_ai.execute_tool query_database" ` )
82
+ - The spans ` name ` SHOULD be ` "gen_ai.execute_tool {gen_ai.tool.name}" ` . (e.g. ` "gen_ai.execute_tool query_database" ` )
83
83
- The ` gen_ai.tool.name ` attribute SHOULD be set to the name of the tool. (e.g. ` "query_database" ` )
84
84
- All [ Common Span Attributes] ( #common-span-attributes ) SHOULD be set (all ` required ` common attributes MUST be set).
85
85
0 commit comments