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
{{ message }}
Repository navigation
Commit a856f83
Browse filesBrowse the repository at this point in the historyBrowse files
- Attribute `gen_ai.operation.name`**MUST** be `"invoke_agent"`.
28
-
- Attribute `gen_ai.agent.name`**SHOULD** be set to the agent's name. (e.g. `"Weather Agent"`)
28
+
- Attribute `gen_ai.agent.name`**SHOULD** be set to the agent's name. (e.g. `"Weather Agent"`). As a fallback to `gen_ai.agent.name`, the product also interprets `gen_ai.function_id` as an agent name for libraries that let users set a tracing identifier on a per-invocation basis.
29
29
- If relevant, the `gen_ai.pipeline.name` attribute **SHOULD** be set to the name of the AI workflow, pipeline or chain within which the agent operates. (e.g. `"weather-pipeline"`)
30
30
31
31
Additional attributes on the span:
@@ -53,7 +53,7 @@ This span represents a request to an AI model or service that generates a respon
53
53
- Attribute `gen_ai.provider.name`**MUST** be the Generative AI product as identified by the client or server instrumentation. (e.g. `"openai"`)
54
54
- Attribute `gen_ai.request.model`**MUST** be the requested model. (e.g. `"gpt-4o"`)
55
55
- Attribute `gen_ai.response.model`**MUST** be the concrete response model. (e.g. `"gpt-4o-2024-08-06"`)
56
-
- If the request originates from an agent, the `gen_ai.agent.name` attribute **SHOULD** be set to the name of the agent. (e.g. `"Weather Agent"`)
56
+
- If the request originates from an agent, the `gen_ai.agent.name` attribute **SHOULD** be set to the name of the agent. (e.g. `"Weather Agent"`). As a fallback to `gen_ai.agent.name`, the product also interprets `gen_ai.function_id` as an agent name for libraries that let users set a tracing identifier on a per-invocation basis.
57
57
- If relevant, the `gen_ai.pipeline.name` attribute **SHOULD** be set to the name of the AI workflow, pipeline or chain within which the agent operates. (e.g. `"weather-pipeline"`)
58
58
59
59
Additional attributes on the span:
@@ -111,7 +111,7 @@ Describes a tool execution.
111
111
- Span `name`**SHOULD** be `"execute_tool {gen_ai.tool.name}"`. (e.g. `"execute_tool query_database"`)
112
112
- Attribute `gen_ai.operation.name`**MUST** be `"execute_tool"`.
113
113
- Attribute `gen_ai.tool.name`**SHOULD** be set to the name of the tool. (e.g. `"query_database"`)
114
-
- Attribute `gen_ai.agent.name`**SHOULD** be set to the name of the agent that invoked the tool. (e.g. `"Weather Agent"`)
114
+
- Attribute `gen_ai.agent.name`**SHOULD** be set to the name of the agent that invoked the tool. (e.g. `"Weather Agent"`). As a fallback to `gen_ai.agent.name`, the product also interprets `gen_ai.function_id` as an agent name for libraries that let users set a tracing identifier on a per-invocation basis.
115
115
- If relevant, the `gen_ai.pipeline.name` attribute **SHOULD** be set to the name of the AI workflow, pipeline or chain within which the agent operates. (e.g. `"weather-pipeline"`)
0 commit comments