You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|[`error.type`](/docs/registry/attributes/error.md)| string | Describes a class of error the operation ended with. [1]|`timeout`; `java.net.UnknownHostException`; `server_certificate_invalid`; `500`|`Conditionally Required` if the operation ended in an error ||
308
+
|[`gen_ai.operation.name`](/docs/registry/attributes/gen-ai.md)| string | The name of the operation being performed. [1]|`chat`; `generate_content`; `text_completion`|`Required`||
309
+
|[`error.type`](/docs/registry/attributes/error.md)| string | Describes a class of error the operation ended with. [2]|`timeout`; `java.net.UnknownHostException`; `server_certificate_invalid`; `500`|`Conditionally Required` if the operation ended in an error ||
309
310
|[`gen_ai.tool.call.id`](/docs/registry/attributes/gen-ai.md)| string | The tool call identifier. |`call_mszuSIzqtI65i1wAUOE8w5H4`|`Recommended` if available ||
310
311
|[`gen_ai.tool.description`](/docs/registry/attributes/gen-ai.md)| string | The tool description. |`Multiply two numbers`|`Recommended` if available ||
311
312
|[`gen_ai.tool.name`](/docs/registry/attributes/gen-ai.md)| string | Name of the tool utilized by the agent. |`Flights`|`Recommended`||
313
+
|[`gen_ai.tool.type`](/docs/registry/attributes/gen-ai.md)| string | Type of the tool utilized by the agent [3]|`function`; `extension`; `datastore`|`Recommended` if available ||
312
314
313
-
**[1]`error.type`:** The `error.type` SHOULD match the error code returned by the Generative AI provider or the client library,
315
+
**[1]`gen_ai.operation.name`:** If one of the predefined values applies, but specific system uses a different name it's RECOMMENDED to document it in the semantic conventions for specific GenAI system and use system-specific name in the instrumentation. If a different name is not documented, instrumentation libraries SHOULD use applicable predefined value.
316
+
317
+
**[2]`error.type`:** The `error.type` SHOULD match the error code returned by the Generative AI provider or the client library,
314
318
the canonical name of exception that occurred, or another low-cardinality error identifier.
315
319
Instrumentations SHOULD document the list of errors they report.
316
320
321
+
**[3]`gen_ai.tool.type`:** Extension: A tool executed on the agent-side to directly call external APIs, bridging the gap between the agent and real-world systems.
322
+
Agent-side operations involve actions that are performed by the agent on the server or within the agent's controlled environment.
323
+
Function: A tool executed on the client-side, where the agent generates parameters for a predefined function, and the client executes the logic.
324
+
Client-side operations are actions taken on the user's end or within the client application.
325
+
Datastore: A tool used by the agent to access and query structured or unstructured external data for retrieval-augmented tasks or knowledge updates.
326
+
317
327
---
318
328
319
329
`error.type` has the following list of well-known values. If one of them applies, then the respective value MUST be used; otherwise, a custom value MAY be used.
@@ -322,6 +332,20 @@ Instrumentations SHOULD document the list of errors they report.
322
332
|---|---|---|
323
333
|`_OTHER`| A fallback error value to be used when the instrumentation doesn't define a custom value. ||
324
334
335
+
---
336
+
337
+
`gen_ai.operation.name` has the following list of well-known values. If one of them applies, then the respective value MUST be used; otherwise, a custom value MAY be used.
338
+
339
+
| Value | Description | Stability |
340
+
|---|---|---|
341
+
|`chat`| Chat completion operation such as [OpenAI Chat API](https://platform.openai.com/docs/api-reference/chat)||
|`embeddings`| Embeddings operation such as [OpenAI Create embeddings API](https://platform.openai.com/docs/api-reference/embeddings/create)||
344
+
|`execute_tool`| Execute a tool ||
345
+
|`generate_content`| Multimodal content generation operation such as [Gemini Generate Content](https://ai.google.dev/api/generate-content)||
|`text_completion`| Text completions operation such as [OpenAI Completions API (Legacy)](https://platform.openai.com/docs/api-reference/completions)||
0 commit comments