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-events.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -320,8 +320,8 @@ This event is intended to answer whether an agent run loaded too much context be
320
320
|[`gen_ai.context.selection.selected.count`](/docs/registry/attributes/gen-ai.md)||`Required`| int | The number of context inputs selected for delivery to a GenAI agent or model. [2]|`5`|
321
321
|[`gen_ai.context.selection.suppressed.count`](/docs/registry/attributes/gen-ai.md)||`Required`| int | The number of candidate context inputs intentionally not delivered to a GenAI agent or model. [3]|`13`|
322
322
|[`gen_ai.agent.id`](/docs/registry/attributes/gen-ai.md)||`Recommended` when available | string | The unique identifier of the GenAI agent. |`asst_5j66UpCpwteGg4YSxUnt7lPY`|
323
-
|[`gen_ai.context.selection.delivered_hash.count`](/docs/registry/attributes/gen-ai.md)||`Recommended` when delivered hashes are available | int | The number of distinct privacy-preserving delivered-context hashes produced for selected context inputs. [4]|`5`|
324
-
|[`gen_ai.context.selection.reason`](/docs/registry/attributes/gen-ai.md)||`Recommended`| string | The implementation-specific reason or policy that selected and suppressed context inputs. [5]|`budget`; `relevance`|
323
+
|[`gen_ai.context.selection.delivered_hash.count`](/docs/registry/attributes/gen-ai.md)||`Recommended` when delivered hashes are available | int | The number of unique privacy-preserving delivered-context hashes produced for selected context inputs. [4]|`5`|
324
+
|[`gen_ai.context.selection.policy`](/docs/registry/attributes/gen-ai.md)||`Recommended`| string | The implementation-specific top-level policy or strategy used to select and suppress context inputs. [5]|`budget`; `hybrid_bm25_dense`|
325
325
|[`gen_ai.conversation.id`](/docs/registry/attributes/gen-ai.md)||`Recommended` when available | string | The unique identifier for a conversation (session, thread), used to store and correlate messages within this conversation. |`conv_5j66UpCpwteGg4YSxUnt7lPY`|
326
326
327
327
**[1]`gen_ai.context.selection.candidate.count`:** This count is intended to help operators detect over-selection without recording raw context content. It SHOULD include inputs discovered before policy, budget, relevance, or deduplication filters are applied.
@@ -330,9 +330,9 @@ This event is intended to answer whether an agent run loaded too much context be
330
330
331
331
**[3]`gen_ai.context.selection.suppressed.count`:** Suppression may be caused by budget limits, deduplication, policy, target-agent mismatch, relevance filtering, or another implementation-specific reason.
332
332
333
-
**[4]`gen_ai.context.selection.delivered_hash.count`:** This count lets telemetry report how many delivered context identities are available for later correlation without recording raw prompt text, tool output, memory bodies, or repository excerpts.
333
+
**[4]`gen_ai.context.selection.delivered_hash.count`:** This count lets telemetry report how many distinct delivered context identities are available for later correlation without recording raw prompt text, tool output, memory bodies, or repository excerpts. It SHOULD count unique hashes, not total hash observations, so duplicate selected inputs can be detected by comparing this value with `gen_ai.context.selection.selected.count`.
334
334
335
-
**[5]`gen_ai.context.selection.reason`:** The value SHOULD have low cardinality. Examples include `budget`, `relevance`, `dedupe`, `target_agent`, `policy`, and `unknown`.
335
+
**[5]`gen_ai.context.selection.policy`:** The value SHOULD have low cardinality and SHOULD describe the top-level selection policy rather than every internal retrieval stage. For hybrid or staged retrieval, use one stable name such as `hybrid_bm25_dense` or `rag_hybrid_v2`; detailed per-stage retrieval telemetry should be reported on retrieval spans or events. Examples include `budget`, `relevance`, `dedupe`, `target_agent`, `hybrid_bm25_dense`, and `unknown`.
Copy file name to clipboardExpand all lines: docs/registry/attributes/gen-ai.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,8 +12,8 @@
12
12
| <aid="gen-ai-agent-name"href="#gen-ai-agent-name">`gen_ai.agent.name`</a> || string | Human-readable name of the GenAI agent provided by the application. |`Math Tutor`; `Fiction Writer`|
13
13
| <aid="gen-ai-agent-version"href="#gen-ai-agent-version">`gen_ai.agent.version`</a> || string | The version of the GenAI agent. |`1.0.0`; `2025-05-01`|
14
14
| <aid="gen-ai-context-selection-candidate-count"href="#gen-ai-context-selection-candidate-count">`gen_ai.context.selection.candidate.count`</a> || int | The number of context inputs considered for possible delivery to a GenAI agent or model. [1]|`18`|
15
-
| <aid="gen-ai-context-selection-delivered-hash-count"href="#gen-ai-context-selection-delivered-hash-count">`gen_ai.context.selection.delivered_hash.count`</a> || int | The number of distinct privacy-preserving delivered-context hashes produced for selected context inputs. [2]|`5`|
16
-
| <aid="gen-ai-context-selection-reason"href="#gen-ai-context-selection-reason">`gen_ai.context.selection.reason`</a> || string | The implementation-specific reason or policy that selected and suppressed context inputs. [3]|`budget`; `relevance`|
15
+
| <aid="gen-ai-context-selection-delivered-hash-count"href="#gen-ai-context-selection-delivered-hash-count">`gen_ai.context.selection.delivered_hash.count`</a> || int | The number of unique privacy-preserving delivered-context hashes produced for selected context inputs. [2]|`5`|
16
+
| <aid="gen-ai-context-selection-policy"href="#gen-ai-context-selection-policy">`gen_ai.context.selection.policy`</a> || string | The implementation-specific top-level policy or strategy used to select and suppress context inputs. [3]|`budget`; `hybrid_bm25_dense`|
17
17
| <aid="gen-ai-context-selection-selected-count"href="#gen-ai-context-selection-selected-count">`gen_ai.context.selection.selected.count`</a> || int | The number of context inputs selected for delivery to a GenAI agent or model. [4]|`5`|
18
18
| <aid="gen-ai-context-selection-suppressed-count"href="#gen-ai-context-selection-suppressed-count">`gen_ai.context.selection.suppressed.count`</a> || int | The number of candidate context inputs intentionally not delivered to a GenAI agent or model. [5]|`13`|
19
19
| <aid="gen-ai-conversation-id"href="#gen-ai-conversation-id">`gen_ai.conversation.id`</a> || string | The unique identifier for a conversation (session, thread), used to store and correlate messages within this conversation. |`conv_5j66UpCpwteGg4YSxUnt7lPY`|
@@ -71,9 +71,9 @@
71
71
72
72
**[1]`gen_ai.context.selection.candidate.count`:** This count is intended to help operators detect over-selection without recording raw context content. It SHOULD include inputs discovered before policy, budget, relevance, or deduplication filters are applied.
73
73
74
-
**[2]`gen_ai.context.selection.delivered_hash.count`:** This count lets telemetry report how many delivered context identities are available for later correlation without recording raw prompt text, tool output, memory bodies, or repository excerpts.
74
+
**[2]`gen_ai.context.selection.delivered_hash.count`:** This count lets telemetry report how many distinct delivered context identities are available for later correlation without recording raw prompt text, tool output, memory bodies, or repository excerpts. It SHOULD count unique hashes, not total hash observations, so duplicate selected inputs can be detected by comparing this value with `gen_ai.context.selection.selected.count`.
75
75
76
-
**[3]`gen_ai.context.selection.reason`:** The value SHOULD have low cardinality. Examples include `budget`, `relevance`, `dedupe`, `target_agent`, `policy`, and `unknown`.
76
+
**[3]`gen_ai.context.selection.policy`:** The value SHOULD have low cardinality and SHOULD describe the top-level selection policy rather than every internal retrieval stage. For hybrid or staged retrieval, use one stable name such as `hybrid_bm25_dense` or `rag_hybrid_v2`; detailed per-stage retrieval telemetry should be reported on retrieval spans or events. Examples include `budget`, `relevance`, `dedupe`, `target_agent`, `hybrid_bm25_dense`, and `unknown`.
77
77
78
78
**[4]`gen_ai.context.selection.selected.count`:** This count SHOULD represent inputs selected after discovery and filtering, before or at delivery. It does not imply that the selected inputs were decision-relevant.
This count lets telemetry report how many delivered context identities are available for later correlation without recording raw prompt text, tool output, memory bodies, or repository excerpts.
754
+
This count lets telemetry report how many distinct delivered context identities are available for later correlation without recording raw prompt text, tool output, memory bodies, or repository excerpts. It SHOULD count unique hashes, not total hash observations, so duplicate selected inputs can be detected by comparing this value with `gen_ai.context.selection.selected.count`.
755
755
provenance:
756
756
path: ./model/gen-ai/registry.yaml
757
757
requirement_level:
758
758
recommended: when delivered hashes are available
759
759
stability: development
760
760
type: int
761
-
- brief: The implementation-specific reason or policy that selected and suppressed context inputs.
761
+
- brief: The implementation-specific top-level policy or strategy used to select and suppress context inputs.
762
762
examples:
763
763
- budget
764
764
- relevance
765
-
key: gen_ai.context.selection.reason
765
+
key: gen_ai.context.selection.policy
766
766
note: |
767
-
The value SHOULD have low cardinality. Examples include `budget`, `relevance`, `dedupe`, `target_agent`, `policy`, and `unknown`.
767
+
The value SHOULD have low cardinality and SHOULD describe the top-level selection policy rather than every internal retrieval stage. For hybrid or staged retrieval, use one stable name such as `hybrid_bm25_dense` or `rag_hybrid_v2`; detailed per-stage retrieval telemetry should be reported on retrieval spans or events. Examples include `budget`, `relevance`, `dedupe`, `target_agent`, `hybrid_bm25_dense`, and `unknown`.
768
768
provenance:
769
769
path: ./model/gen-ai/registry.yaml
770
770
requirement_level: recommended
@@ -11934,23 +11934,23 @@ registry:
11934
11934
path: ./model/gen-ai/registry.yaml
11935
11935
stability: development
11936
11936
type: int
11937
-
- brief: The number of distinct privacy-preserving delivered-context hashes produced for selected context inputs.
11937
+
- brief: The number of unique privacy-preserving delivered-context hashes produced for selected context inputs.
This count lets telemetry report how many delivered context identities are available for later correlation without recording raw prompt text, tool output, memory bodies, or repository excerpts.
11942
+
This count lets telemetry report how many distinct delivered context identities are available for later correlation without recording raw prompt text, tool output, memory bodies, or repository excerpts. It SHOULD count unique hashes, not total hash observations, so duplicate selected inputs can be detected by comparing this value with `gen_ai.context.selection.selected.count`.
11943
11943
provenance:
11944
11944
path: ./model/gen-ai/registry.yaml
11945
11945
stability: development
11946
11946
type: int
11947
-
- brief: The implementation-specific reason or policy that selected and suppressed context inputs.
11947
+
- brief: The implementation-specific top-level policy or strategy used to select and suppress context inputs.
11948
11948
examples:
11949
11949
- budget
11950
11950
- relevance
11951
-
key: gen_ai.context.selection.reason
11951
+
key: gen_ai.context.selection.policy
11952
11952
note: |
11953
-
The value SHOULD have low cardinality. Examples include `budget`, `relevance`, `dedupe`, `target_agent`, `policy`, and `unknown`.
11953
+
The value SHOULD have low cardinality and SHOULD describe the top-level selection policy rather than every internal retrieval stage. For hybrid or staged retrieval, use one stable name such as `hybrid_bm25_dense` or `rag_hybrid_v2`; detailed per-stage retrieval telemetry should be reported on retrieval spans or events. Examples include `budget`, `relevance`, `dedupe`, `target_agent`, `hybrid_bm25_dense`, and `unknown`.
11954
11954
provenance:
11955
11955
path: ./model/gen-ai/registry.yaml
11956
11956
stability: development
@@ -13812,25 +13812,25 @@ registry:
13812
13812
requirement_level: required
13813
13813
stability: development
13814
13814
type: int
13815
-
- brief: The number of distinct privacy-preserving delivered-context hashes produced for selected context inputs.
13815
+
- brief: The number of unique privacy-preserving delivered-context hashes produced for selected context inputs.
This count lets telemetry report how many delivered context identities are available for later correlation without recording raw prompt text, tool output, memory bodies, or repository excerpts.
13820
+
This count lets telemetry report how many distinct delivered context identities are available for later correlation without recording raw prompt text, tool output, memory bodies, or repository excerpts. It SHOULD count unique hashes, not total hash observations, so duplicate selected inputs can be detected by comparing this value with `gen_ai.context.selection.selected.count`.
13821
13821
provenance:
13822
13822
path: ./model/gen-ai/registry.yaml
13823
13823
requirement_level:
13824
13824
recommended: when delivered hashes are available
13825
13825
stability: development
13826
13826
type: int
13827
-
- brief: The implementation-specific reason or policy that selected and suppressed context inputs.
13827
+
- brief: The implementation-specific top-level policy or strategy used to select and suppress context inputs.
13828
13828
examples:
13829
13829
- budget
13830
13830
- relevance
13831
-
key: gen_ai.context.selection.reason
13831
+
key: gen_ai.context.selection.policy
13832
13832
note: |
13833
-
The value SHOULD have low cardinality. Examples include `budget`, `relevance`, `dedupe`, `target_agent`, `policy`, and `unknown`.
13833
+
The value SHOULD have low cardinality and SHOULD describe the top-level selection policy rather than every internal retrieval stage. For hybrid or staged retrieval, use one stable name such as `hybrid_bm25_dense` or `rag_hybrid_v2`; detailed per-stage retrieval telemetry should be reported on retrieval spans or events. Examples include `budget`, `relevance`, `dedupe`, `target_agent`, `hybrid_bm25_dense`, and `unknown`.
0 commit comments