Skip to content

Commit 093223d

Browse files
ref(ai-agents-sdks): Remove gen_ai.operation.type and narrow operation names for requests (#16324)
1 parent ecd7233 commit 093223d

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

develop-docs/sdk/telemetry/traces/modules/ai-agents.mdx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ This span represents a request to an AI model or service that generates a respon
9999

100100
- Span `op` SHOULD be `"gen_ai.{gen_ai.operation.name}"`. (e.g. `"gen_ai.chat"`)
101101
- Span `name` SHOULD be `{gen_ai.operation.name} {gen_ai.request.model}"`. (e.g. `"chat o3-mini"`)
102-
- Attribute `gen_ai.operation.name` MUST be the operation performed. **[4]** (e.g. `"chat"`.)
102+
- Attribute `gen_ai.operation.name` MUST be `"chat"`, `"embeddings"`, `"generate_content"` or `"text_completion"`. **[4]**
103103
- All [Common Span Attributes](#common-span-attributes) SHOULD be set (all `required` common attributes MUST be set).
104104

105105
Additional attributes on the span:
@@ -199,7 +199,6 @@ Some attributes are common to all AI Agents spans:
199199
| Attribute | Type | Requirement Level | Description | Example |
200200
| :---------------------- | :----- | :---------------- | :--------------------------------------------------------------------------------------- | :-------------------- |
201201
| `gen_ai.operation.name` | string | required | The name of the operation being performed. **[4]** | `"chat"` |
202-
| `gen_ai.operation.type` | string | optional | Type of AI operation: `"agent"`, `"ai_client"`, `"tool"`, `"handoff"`, `"guardrail"`. | `"agent"` |
203202
| `gen_ai.request.model` | string | required | The name of the AI model a request is being made to. | `"gpt-4o"` |
204203
| `gen_ai.response.model` | string | optional | The name of the AI model the response was created with. | `"gpt-4o-2024-08-06"` |
205204
| `gen_ai.agent.name` | string | optional | The name of the agent this span belongs to. | `"Weather Agent"` |

0 commit comments

Comments
 (0)