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
Copy file name to clipboardExpand all lines: docs/gen-ai/aws-bedrock.md
+17-6Lines changed: 17 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -81,6 +81,7 @@ Describes an AWS Bedrock operation span.
81
81
| [`gen_ai.input.messages`](/docs/registry/attributes/gen-ai.md) | any | The chat history provided to the model as an input. [11] | [<br> {<br> "role": "user",<br> "parts": [<br> {<br> "type": "text",<br> "content": "Weather in Paris?"<br> }<br> ]<br> },<br> {<br> "role": "assistant",<br> "parts": [<br> {<br> "type": "tool_call",<br> "id": "call_VSPygqKTWdrhaFErNvMV18Yl",<br> "name": "get_weather",<br> "arguments": {<br> "location": "Paris"<br> }<br> }<br> ]<br> },<br> {<br> "role": "tool",<br> "parts": [<br> {<br> "type": "tool_call_response",<br> "id": " call_VSPygqKTWdrhaFErNvMV18Yl",<br> "result": "rainy, 57°F"<br> }<br> ]<br> }<br>] | `Opt-In` |  |
82
82
|[`gen_ai.output.messages`](/docs/registry/attributes/gen-ai.md)| any | Messages returned by the model where each message represents a specific model response (choice, candidate). [12]|[<br> {<br> "role": "assistant",<br> "parts": [<br> {<br> "type": "text",<br> "content": "The weather in Paris is currently rainy with a temperature of 57°F."<br> }<br> ],<br> "finish_reason": "stop"<br> }<br>]|`Opt-In`||
83
83
|[`gen_ai.system_instructions`](/docs/registry/attributes/gen-ai.md)| any | The system message or instructions provided to the GenAI model separately from the chat history. [13]|[<br> {<br> "type": "text",<br> "content": "You are an Agent that greet users, always use greetings tool to respond"<br> }<br>]; [<br> {<br> "type": "text",<br> "content": "You are a language translator."<br> },<br> {<br> "type": "text",<br> "content": "Your mission is to translate text in English to French."<br> }<br>]|`Opt-In`||
84
+
| [`gen_ai.tool.definitions`](/docs/registry/attributes/gen-ai.md) | any | The list of source system tool definitions available to the GenAI agent or model. [14] | [<br> {<br> "type": "function",<br> "name": "get_current_weather",<br> "description": "Get the current weather in a given location",<br> "parameters": {<br> "type": "object",<br> "properties": {<br> "location": {<br> "type": "string",<br> "description": "The city and state, e.g. San Francisco, CA"<br> },<br> "unit": {<br> "type": "string",<br> "enum": [<br> "celsius",<br> "fahrenheit"<br> ]<br> }<br> },<br> "required": [<br> "location",<br> "unit"<br> ]<br> }<br> }<br>] | `Opt-In` |  |
84
85
85
86
**[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.
86
87
@@ -191,6 +192,16 @@ system instructions.
191
192
See [Recording content on attributes](/docs/gen-ai/gen-ai-spans.md#recording-content-on-attributes)
192
193
section for more details.
193
194
195
+
**[14]`gen_ai.tool.definitions`:** The value of this attribute matches source system tool definition format.
196
+
197
+
It's expected to be an array of objects where each object represents a tool definition. In case a serialized string is available
198
+
to the instrumentation, the instrumentation SHOULD do the best effort to
199
+
deserialize it to an array. When recorded on spans, it MAY be recorded as a JSON string if structured format is not supported and SHOULD be recorded in structured form otherwise.
200
+
201
+
Since this attribute could be large, it's NOT RECOMMENDED to populate
202
+
it by default. Instrumentations MAY provide a way to enable
203
+
populating this attribute.
204
+
194
205
---
195
206
196
207
`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.
Copy file name to clipboardExpand all lines: docs/gen-ai/azure-ai-inference.md
+11Lines changed: 11 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -90,6 +90,7 @@ model name is available and `{gen_ai.operation.name}` otherwise.
90
90
| [`gen_ai.input.messages`](/docs/registry/attributes/gen-ai.md) | any | The chat history provided to the model as an input. [11] | [<br> {<br> "role": "user",<br> "parts": [<br> {<br> "type": "text",<br> "content": "Weather in Paris?"<br> }<br> ]<br> },<br> {<br> "role": "assistant",<br> "parts": [<br> {<br> "type": "tool_call",<br> "id": "call_VSPygqKTWdrhaFErNvMV18Yl",<br> "name": "get_weather",<br> "arguments": {<br> "location": "Paris"<br> }<br> }<br> ]<br> },<br> {<br> "role": "tool",<br> "parts": [<br> {<br> "type": "tool_call_response",<br> "id": " call_VSPygqKTWdrhaFErNvMV18Yl",<br> "result": "rainy, 57°F"<br> }<br> ]<br> }<br>] | `Opt-In` |  |
91
91
|[`gen_ai.output.messages`](/docs/registry/attributes/gen-ai.md)| any | Messages returned by the model where each message represents a specific model response (choice, candidate). [12]|[<br> {<br> "role": "assistant",<br> "parts": [<br> {<br> "type": "text",<br> "content": "The weather in Paris is currently rainy with a temperature of 57°F."<br> }<br> ],<br> "finish_reason": "stop"<br> }<br>]|`Opt-In`||
92
92
|[`gen_ai.system_instructions`](/docs/registry/attributes/gen-ai.md)| any | The system message or instructions provided to the GenAI model separately from the chat history. [13]|[<br> {<br> "type": "text",<br> "content": "You are an Agent that greet users, always use greetings tool to respond"<br> }<br>]; [<br> {<br> "type": "text",<br> "content": "You are a language translator."<br> },<br> {<br> "type": "text",<br> "content": "Your mission is to translate text in English to French."<br> }<br>]|`Opt-In`||
93
+
| [`gen_ai.tool.definitions`](/docs/registry/attributes/gen-ai.md) | any | The list of source system tool definitions available to the GenAI agent or model. [14] | [<br> {<br> "type": "function",<br> "name": "get_current_weather",<br> "description": "Get the current weather in a given location",<br> "parameters": {<br> "type": "object",<br> "properties": {<br> "location": {<br> "type": "string",<br> "description": "The city and state, e.g. San Francisco, CA"<br> },<br> "unit": {<br> "type": "string",<br> "enum": [<br> "celsius",<br> "fahrenheit"<br> ]<br> }<br> },<br> "required": [<br> "location",<br> "unit"<br> ]<br> }<br> }<br>] | `Opt-In` |  |
93
94
94
95
**[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.
95
96
@@ -192,6 +193,16 @@ system instructions.
192
193
See [Recording content on attributes](/docs/gen-ai/gen-ai-spans.md#recording-content-on-attributes)
193
194
section for more details.
194
195
196
+
**[14]`gen_ai.tool.definitions`:** The value of this attribute matches source system tool definition format.
197
+
198
+
It's expected to be an array of objects where each object represents a tool definition. In case a serialized string is available
199
+
to the instrumentation, the instrumentation SHOULD do the best effort to
200
+
deserialize it to an array. When recorded on spans, it MAY be recorded as a JSON string if structured format is not supported and SHOULD be recorded in structured form otherwise.
201
+
202
+
Since this attribute could be large, it's NOT RECOMMENDED to populate
203
+
it by default. Instrumentations MAY provide a way to enable
204
+
populating this attribute.
205
+
195
206
---
196
207
197
208
`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.
0 commit comments