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 c8c14ca
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
- As a fallback to missing inputs and outputs on child chat spans, the Invoke Agent Span can carry `gen_ai.input.messages` and `gen_ai.system_instructions` based on the input of the first model call, and `gen_ai.output.messages` based on the output of the final model call under the agent execution.
31
31
@@ -39,7 +39,7 @@ This span represents a request to an AI model or service that generates a respon
39
39
- Attribute `gen_ai.provider.name`**MUST** be the Generative AI product as identified by the client or server instrumentation. (e.g. `"openai"`)
40
40
- Attribute `gen_ai.request.model`**MUST** be the requested model. (e.g. `"gpt-4o"`)
41
41
- Attribute `gen_ai.response.model`**MUST** be the concrete response model. (e.g. `"gpt-4o-2024-08-06"`)
42
-
- 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"`)
42
+
- 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.
43
43
- 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"`)
44
44
45
45
Additional attributes on the span:
@@ -88,7 +88,7 @@ Describes a tool execution.
88
88
- Span `op`**SHOULD** be `"gen_ai.execute_tool"`.
89
89
- Span `name`**SHOULD** be `"execute_tool {gen_ai.tool.name}"`. (e.g. `"execute_tool query_database"`)
90
90
- Attribute `gen_ai.operation.name`**MUST** be `"execute_tool"`.
91
-
- Attribute `gen_ai.agent.name`**SHOULD** be set to the name of the agent that invoked the tool. (e.g. `"Weather Agent"`)
91
+
- 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.
92
92
- 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