Skip to content
Open
Show file tree
Hide file tree
Changes from 12 commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
f062bd0
Add proposed new fields in .yml format
susan-shu-c Sep 18, 2025
bbc490f
Add built doc files
susan-shu-c Sep 18, 2025
4b32811
Update proposed type for tool.call.result
susan-shu-c Sep 18, 2025
9b177e4
Merge generated files from main
susan-shu-c Oct 2, 2025
9b1cc75
Checkout files from main
susan-shu-c Oct 2, 2025
7ef579f
Fix typo
susan-shu-c Oct 2, 2025
22cdf78
Update generated docs
susan-shu-c Oct 2, 2025
2b1011a
Rebuild generated files
mjwolf Oct 2, 2025
5f878bd
Update examples
susan-shu-c Oct 8, 2025
8a89add
Grab doc file from main
susan-shu-c Oct 8, 2025
368ece1
Merge remote-tracking branch 'upstream/main' into additional-gen_ai-s…
mjwolf Oct 9, 2025
47aa573
Update field types based on feedback tradeoffs
susan-shu-c Oct 9, 2025
dc83c90
Change field beta reuse wording
susan-shu-c Oct 10, 2025
2b53588
Clean up wording and examples in rfcs/text
susan-shu-c Oct 10, 2025
0b7379e
Update schemas/gen_ai.yml
susan-shu-c Oct 10, 2025
33c9f2e
Merge branch 'main' into additional-gen_ai-stage-2
trisch-me Oct 17, 2025
065887c
Comment out not-merged OTel fields
susan-shu-c Oct 17, 2025
4bf7e59
Comment out not-merged OTel fields
susan-shu-c Oct 17, 2025
d90ed1c
Update related OTel
susan-shu-c Oct 17, 2025
72330fd
Remove trailing spaces via lint
susan-shu-c Oct 17, 2025
aebee50
Update proposal text file
susan-shu-c Oct 17, 2025
672d40d
Update generated files
susan-shu-c Oct 17, 2025
d391627
Merge remote-tracking branch 'upstream/main' into additional-gen_ai-s…
mjwolf Oct 17, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion rfcs/text/0052-gen_ai-additional-fields.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ gen_ai.input.messages | (Looking for feedback) flattened | The chat history prov
gen_ai.output.messages | (Looking for feedback) flattened | Messages returned by the model where each message represents a specific model response (choice, candidate).
gen_ai.tool.definitions | (Looking for feedback) nested | (Part of invoke_agent span) The list of source system tool definitions available to the GenAI agent or model.
gen_ai.tool.call.arguments | (Looking for feedback) nested | (Part of OTel execute_tool span) Parameters passed to the tool call.
gen_ai.tool.call.result | (Looking for feedback) nested | (Part of OTel execute_tool span) The result returned by the tool call (if any and if execution was successful).
gen_ai.tool.call.result | (Looking for feedback) flattened | (Part of OTel execute_tool span) The result returned by the tool call (if any and if execution was successful).

Changes based on OTel https://github.com/open-telemetry/semantic-conventions/pull/2179/files

Expand Down
133 changes: 133 additions & 0 deletions rfcs/text/0052/gen_ai.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,133 @@
---
- name: gen_ai
fields:
- name: system_instructions
type: flattened
description: The system message or instructions provided to the GenAI model separately from the chat history.
example: >
{
"type": "text",
"content": "You are an Agent that greet users, always use greetings tool to respond"
}
level: extended
beta: This field reuse is beta and subject to change.
otel:
- relation: match
- name: input.messages
type: nested
description: The chat history provided to the model as an input.
example: >
{
"role": "user",
"parts": [
{
"type": "text",
"content": "Weather in Paris?"
}
]
},
{
"role": "assistant",
"parts": [
{
"type": "tool_call",
"id": "call_VSPygqKTWdrhaFErNvMV18Yl",
"name": "get_weather",
"arguments": {
"location": "Paris"
}
}
]
},
{
"role": "tool",
"parts": [
{
"type": "tool_call_response",
"id": " call_VSPygqKTWdrhaFErNvMV18Yl",
"result": "rainy, 57°F"
}
]
}
level: extended
beta: This field reuse is beta and subject to change.
otel:
- relation: match
- name: output.messages
type: nested
description: Messages returned by the model where each message represents a specific model response (choice, candidate).
example: >
{
"role": "assistant",
"parts": [
{
"type": "text",
"content": "The weather in Paris is currently rainy with a temperature of 57°F."
}
],
"finish_reason": "stop"
}
level: extended
beta: This field reuse is beta and subject to change.
otel:
- relation: match
- name: tool.definitions
type: nested
description: The list of source system tool definitions available to the GenAI agent or model.
example: >
{
"type": "function",
"name": "get_current_weather",
"description": "Get the current weather in a given location",
"parameters": {
"type": "object",
"properties": {
"location": {
"type": "string",
"description": "The city and state, e.g. San Francisco, CA"
},
"unit": {
"type": "string",
"enum": [
"celsius",
"fahrenheit"
]
}
},
"required": [
"location",
"unit"
]
}
}
level: extended
beta: This field reuse is beta and subject to change.
otel:
- relation: match
- name: tool.call.arguments
type: flattened
description: Parameters passed to the tool call.
example: >
{
"location": "San Francisco?",
"date": "2025-10-01"
}
level: extended
beta: This field reuse is beta and subject to change.
otel:
- relation: match
- name: tool.call.result
type: flattened
description: The result returned by the tool call (if any and if execution was successful).
example: >
{
"temperature_range": {
"high": 75,
"low": 60
},
"conditions": "sunny"
}
level: extended
beta: This field reuse is beta and subject to change.
otel:
- relation: match