Skip to content

Commit 520ce39

Browse files
authored
telemetry(amazonq): list of request ids in addMessage #1024
## Problem - The following are new science requirements: - In the new agentic chat after a user types a message, it may trigger multiple LLM calls, but we only store the final LLM requestID (`cwsprChatMessageId`), which is the one that generates the response shown to the user. Earlier LLM calls in the sequence, which handle internal processing and aren't visible to users, are not currently emitted. - We currently emit the LLM interaction events, but we lose emission of the associated LLM/Tool RequestID’s that led to the user interaction event (ie we don’t know which LLM requests the user click stop button, we don’t know which write tool ID the user chose to undo). ## Solution - Emit all LLM RequestIDs in the order that these requests were made in `amazonq_addMessage` - As the list of RequestIDs may be long, will look into the max char limit of a field in kibana - Emit Tool/LLM requestIDs related to User Interaction Events in `amazonq_interactWithAgenticChat`
1 parent b8b7bbf commit 520ce39

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

telemetry/definitions/commonDefinitions.json

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1947,6 +1947,11 @@
19471947
"type": "string",
19481948
"description": "A special token that is used together with the request ID header to help AWS troubleshoot problems. For example, this has to be provided with requestId when debugging S3 upload errors."
19491949
},
1950+
{
1951+
"name": "requestIds",
1952+
"type": "string",
1953+
"description": "Request ids (comma-separated) associated with a task or action, in chronological order. For example 'id1,id2,id3'"
1954+
},
19501955
{
19511956
"name": "requestServiceType",
19521957
"type": "string",
@@ -2452,6 +2457,10 @@
24522457
{
24532458
"type": "languageServerVersion",
24542459
"required": false
2460+
},
2461+
{
2462+
"type": "requestIds",
2463+
"required": false
24552464
}
24562465
]
24572466
},
@@ -2701,9 +2710,21 @@
27012710
{
27022711
"type": "cwsprChatConversationType"
27032712
},
2713+
{
2714+
"type": "cwsprChatMessageId",
2715+
"required": false
2716+
},
2717+
{
2718+
"type": "cwsprToolUseId",
2719+
"required": false
2720+
},
27042721
{
27052722
"type": "languageServerVersion",
27062723
"required": false
2724+
},
2725+
{
2726+
"type": "requestIds",
2727+
"required": false
27072728
}
27082729
]
27092730
},

0 commit comments

Comments
 (0)