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/gen-ai-spans.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -853,7 +853,7 @@ or `search_memory` if store id is not available.
853
853
|[`server.port`](/docs/registry/attributes/server.md)||`Conditionally Required` If `server.address` is set. | int | GenAI server port. [5]|`80`; `8080`; `443`|
854
854
|[`server.address`](/docs/registry/attributes/server.md)||`Recommended`| string | GenAI server address. [6]|`example.com`; `10.1.2.80`; `/tmp/my.sock`|
855
855
|[`gen_ai.memory.query.text`](/docs/registry/attributes/gen-ai.md)||`Opt-In`| string | The search query used to retrieve memories. [7]|`user dietary preferences`; `past flight bookings`|
856
-
|[`gen_ai.memory.returned_records`](/docs/registry/attributes/gen-ai.md)||`Opt-In`| any | The memory records returned from a search operation. [8]|[<br> {<br> "content": "User prefers dark mode",<br> "id": "mem_123",<br> "score": 0.95<br> },<br> {<br> "content": "User is based in Seattle",<br> "id": "mem_456",<br> "score": 0.82<br> }<br>]|
856
+
|[`gen_ai.memory.records`](/docs/registry/attributes/gen-ai.md)||`Opt-In`| any | The memory records returned from a search operation. [8]|[<br> {<br> "content": "User prefers dark mode",<br> "id": "mem_123",<br> "score": 0.95<br> },<br> {<br> "content": "User is based in Seattle",<br> "id": "mem_456",<br> "score": 0.82<br> }<br>]|
857
857
858
858
**[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.
859
859
@@ -891,7 +891,7 @@ Instrumentations SHOULD document the list of errors they report.
891
891
> [!WARNING]
892
892
> This attribute may contain sensitive information.
893
893
894
-
**[8]`gen_ai.memory.returned_records`:** This attribute follows the same pattern as `gen_ai.retrieval.documents`.
894
+
**[8]`gen_ai.memory.records`:** This attribute follows the same pattern as `gen_ai.retrieval.documents`.
895
895
896
896
Each record object SHOULD contain at least the following properties:
897
897
`content` (any): The content of the memory record.
Copy file name to clipboardExpand all lines: docs/registry/attributes/gen-ai.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -30,7 +30,7 @@ This document defines the attributes used to describe telemetry in the context o
30
30
| <aid="gen-ai-memory-query-text"href="#gen-ai-memory-query-text">`gen_ai.memory.query.text`</a> || string | The search query used to retrieve memories. [4]|`user dietary preferences`; `past flight bookings`|
31
31
| <aid="gen-ai-memory-record-content"href="#gen-ai-memory-record-content">`gen_ai.memory.record.content`</a> || any | The content/value of the memory record. [5]|`{"preference": "dark_mode", "value": true}`|
32
32
| <aid="gen-ai-memory-record-id"href="#gen-ai-memory-record-id">`gen_ai.memory.record.id`</a> || string | The unique identifier of the memory record. |`mem_5j66UpCpwteGg4YSxUnt7lPY`|
33
-
| <aid="gen-ai-memory-returned-records"href="#gen-ai-memory-returned-records">`gen_ai.memory.returned_records`</a> || any | The memory records returned from a search operation. [6]|[<br> {<br> "content": "User prefers dark mode",<br> "id": "mem_123",<br> "score": 0.95<br> },<br> {<br> "content": "User is based in Seattle",<br> "id": "mem_456",<br> "score": 0.82<br> }<br>]|
33
+
| <aid="gen-ai-memory-records"href="#gen-ai-memory-records">`gen_ai.memory.records`</a> || any | The memory records returned from a search operation. [6]|[<br> {<br> "content": "User prefers dark mode",<br> "id": "mem_123",<br> "score": 0.95<br> },<br> {<br> "content": "User is based in Seattle",<br> "id": "mem_456",<br> "score": 0.82<br> }<br>]|
34
34
| <aid="gen-ai-memory-store-id"href="#gen-ai-memory-store-id">`gen_ai.memory.store.id`</a> || string | The unique identifier of the memory store. [7]|`ms_abc123`; `user-preferences-store`|
35
35
| <aid="gen-ai-operation-name"href="#gen-ai-operation-name">`gen_ai.operation.name`</a> || string | The name of the operation being performed. [8]|`chat`; `generate_content`; `text_completion`|
36
36
| <aid="gen-ai-output-messages"href="#gen-ai-output-messages">`gen_ai.output.messages`</a> || any | Messages returned by the model where each message represents a specific model response (choice, candidate). [9]|[<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>]|
@@ -99,7 +99,7 @@ section for more details.
99
99
100
100
Instrumentations SHOULD NOT capture this by default.
101
101
102
-
**[6]`gen_ai.memory.returned_records`:** This attribute follows the same pattern as `gen_ai.retrieval.documents`.
102
+
**[6]`gen_ai.memory.records`:** This attribute follows the same pattern as `gen_ai.retrieval.documents`.
103
103
104
104
Each record object SHOULD contain at least the following properties:
105
105
`content` (any): The content of the memory record.
0 commit comments