Skip to content

Commit 2a15973

Browse files
committed
polish description and add models
Change-Id: Ib6133b3019195e4fa9a54d329ff4b891a281d208 Co-developed-by: Cursor <[email protected]>
1 parent 8562a82 commit 2a15973

File tree

11 files changed

+46
-41
lines changed

11 files changed

+46
-41
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Use this changelog template to create an entry for release notes.
2+
#
3+
# If your change doesn't affect end users you should instead start
4+
# your pull request title with [chore] or use the "Skip Changelog" label.
5+
6+
# One of 'breaking', 'deprecation', 'new_component', 'enhancement', 'bug_fix'
7+
change_type: enhancement
8+
9+
# The name of the area of concern in the attributes-registry, (e.g. http, cloud, db)
10+
component: gen-ai
11+
12+
# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`).
13+
note: Enhance the definition of `gen_ai.tool.definitions` attribute.
14+
15+
# Mandatory: One or more tracking issues related to the change. You can use the PR number here if no issue exists.
16+
# The values here must be integers.
17+
issues: [2721, 1835]
18+
19+
# (Optional) One or more lines of additional information to render under the primary note.
20+
# These lines will be padded with 2 spaces and then inserted directly into the document.
21+
# Use pipe (|) for multiline entries.
22+
subtext: |
23+
The schema of `gen_ai.tool.definitions` attribute is now enhanced to:
24+
- Add JSON schema of `gen_ai.tool.definitions` attribute.
25+
- Document the behavior of capturing tool definitions.
26+
- Capture the tool definitions in a simplified format if the content capturing is disabled.

docs/gen-ai/aws-bedrock.md

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -204,13 +204,10 @@ form. When recorded on spans, it MAY be recorded as a JSON string if structured
204204
format is not supported and SHOULD be recorded in structured form otherwise.
205205

206206
If instrumentations can reliably deserialize and extract the tool definitions,
207-
it's RECOMMENDED to only populate required fields of the definition objects
208-
by default. Otherwise, it's NOT RECOMMENDED to populate it by default.
207+
it's RECOMMENDED to only populate required fields (`name`, `type`) of the definition
208+
objects by default. Otherwise, it's NOT RECOMMENDED to populate it by default.
209209
Instrumentations MAY provide a way to enable populating this attribute.
210210

211-
> [!Warning]
212-
> This attribute is likely to contain sensitive information including user/PII data.
213-
214211
---
215212

216213
`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.

docs/gen-ai/azure-ai-inference.md

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -205,13 +205,10 @@ form. When recorded on spans, it MAY be recorded as a JSON string if structured
205205
format is not supported and SHOULD be recorded in structured form otherwise.
206206

207207
If instrumentations can reliably deserialize and extract the tool definitions,
208-
it's RECOMMENDED to only populate required fields of the definition objects
209-
by default. Otherwise, it's NOT RECOMMENDED to populate it by default.
208+
it's RECOMMENDED to only populate required fields (`name`, `type`) of the definition
209+
objects by default. Otherwise, it's NOT RECOMMENDED to populate it by default.
210210
Instrumentations MAY provide a way to enable populating this attribute.
211211

212-
> [!Warning]
213-
> This attribute is likely to contain sensitive information including user/PII data.
214-
215212
---
216213

217214
`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.

docs/gen-ai/gen-ai-agent-spans.md

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -344,13 +344,10 @@ form. When recorded on spans, it MAY be recorded as a JSON string if structured
344344
format is not supported and SHOULD be recorded in structured form otherwise.
345345

346346
If instrumentations can reliably deserialize and extract the tool definitions,
347-
it's RECOMMENDED to only populate required fields of the definition objects
348-
by default. Otherwise, it's NOT RECOMMENDED to populate it by default.
347+
it's RECOMMENDED to only populate required fields (`name`, `type`) of the definition
348+
objects by default. Otherwise, it's NOT RECOMMENDED to populate it by default.
349349
Instrumentations MAY provide a way to enable populating this attribute.
350350

351-
> [!Warning]
352-
> This attribute is likely to contain sensitive information including user/PII data.
353-
354351
---
355352

356353
`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.

docs/gen-ai/gen-ai-events.md

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -185,13 +185,10 @@ form. When recorded on spans, it MAY be recorded as a JSON string if structured
185185
format is not supported and SHOULD be recorded in structured form otherwise.
186186

187187
If instrumentations can reliably deserialize and extract the tool definitions,
188-
it's RECOMMENDED to only populate required fields of the definition objects
189-
by default. Otherwise, it's NOT RECOMMENDED to populate it by default.
188+
it's RECOMMENDED to only populate required fields (`name`, `type`) of the definition
189+
objects by default. Otherwise, it's NOT RECOMMENDED to populate it by default.
190190
Instrumentations MAY provide a way to enable populating this attribute.
191191

192-
> [!Warning]
193-
> This attribute is likely to contain sensitive information including user/PII data.
194-
195192
---
196193

197194
`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.

docs/gen-ai/gen-ai-spans.md

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -217,13 +217,10 @@ form. When recorded on spans, it MAY be recorded as a JSON string if structured
217217
format is not supported and SHOULD be recorded in structured form otherwise.
218218

219219
If instrumentations can reliably deserialize and extract the tool definitions,
220-
it's RECOMMENDED to only populate required fields of the definition objects
221-
by default. Otherwise, it's NOT RECOMMENDED to populate it by default.
220+
it's RECOMMENDED to only populate required fields (`name`, `type`) of the definition
221+
objects by default. Otherwise, it's NOT RECOMMENDED to populate it by default.
222222
Instrumentations MAY provide a way to enable populating this attribute.
223223

224-
> [!Warning]
225-
> This attribute is likely to contain sensitive information including user/PII data.
226-
227224
---
228225

229226
`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.

docs/gen-ai/gen-ai-tool-definitions.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
"type": "string"
2323
},
2424
"description": {
25+
"default": null,
2526
"description": "Description of the tool.",
2627
"title": "Description",
2728
"type": "string"
@@ -39,8 +40,7 @@
3940
},
4041
"required": [
4142
"type",
42-
"name",
43-
"description"
43+
"name"
4444
],
4545
"title": "ToolDefinition",
4646
"type": "object"

docs/gen-ai/non-normative/models.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@
251251
" \"\"\"\n",
252252
" type: Union[ToolType, str] = Field(description=\"Type of the tool.\")\n",
253253
" name: str = Field(description=\"Name of the tool.\")\n",
254-
" description: str = Field(description=\"Description of the tool.\")\n",
254+
" description: str = Field(None, description=\"Description of the tool.\")\n",
255255
" parameters: Any = Field(\n",
256256
" default=None,\n",
257257
" description=(\n",
@@ -283,7 +283,7 @@
283283
],
284284
"metadata": {
285285
"kernelspec": {
286-
"display_name": "semconv",
286+
"display_name": "Python 3",
287287
"language": "python",
288288
"name": "python3"
289289
},

docs/gen-ai/openai.md

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -210,13 +210,10 @@ form. When recorded on spans, it MAY be recorded as a JSON string if structured
210210
format is not supported and SHOULD be recorded in structured form otherwise.
211211

212212
If instrumentations can reliably deserialize and extract the tool definitions,
213-
it's RECOMMENDED to only populate required fields of the definition objects
214-
by default. Otherwise, it's NOT RECOMMENDED to populate it by default.
213+
it's RECOMMENDED to only populate required fields (`name`, `type`) of the definition
214+
objects by default. Otherwise, it's NOT RECOMMENDED to populate it by default.
215215
Instrumentations MAY provide a way to enable populating this attribute.
216216

217-
> [!Warning]
218-
> This attribute is likely to contain sensitive information including user/PII data.
219-
220217
---
221218

222219
`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.

docs/registry/attributes/gen-ai.md

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -167,13 +167,10 @@ form. When recorded on spans, it MAY be recorded as a JSON string if structured
167167
format is not supported and SHOULD be recorded in structured form otherwise.
168168

169169
If instrumentations can reliably deserialize and extract the tool definitions,
170-
it's RECOMMENDED to only populate required fields of the definition objects
171-
by default. Otherwise, it's NOT RECOMMENDED to populate it by default.
170+
it's RECOMMENDED to only populate required fields (`name`, `type`) of the definition
171+
objects by default. Otherwise, it's NOT RECOMMENDED to populate it by default.
172172
Instrumentations MAY provide a way to enable populating this attribute.
173173

174-
> [!Warning]
175-
> This attribute is likely to contain sensitive information including user/PII data.
176-
177174
**[13] `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.
178175
Agent-side operations involve actions that are performed by the agent on the server or within the agent's controlled environment.
179176
Function: A tool executed on the client-side, where the agent generates parameters for a predefined function, and the client executes the logic.

0 commit comments

Comments
 (0)