From b32fc9fcb97bf1be33246e4b191ea0a009dd7a41 Mon Sep 17 00:00:00 2001 From: Santiago Martin <143631912+sannicm@users.noreply.github.com> Date: Mon, 13 May 2024 20:13:08 +0200 Subject: [PATCH] telemetry(amazonq): source folder modification #731 amazonq_modifySourceFolder can happen on different steps of our process, whenever we upload the repo to our backend (that happens at least once before planning the execution, and once more for each code generation requested). It's not triggered by the user on-demand; only when we think the repo is too large and a sub-folder should be selected. We display the button and want to capture the action of the user clicking it. While the field could be added as a userHasModifiedSourceFolder boolean of our amazonq_uploadRepo and amazonq_GenerateCode metrics, the idea was to have a specific metric indicating that the button was clicked (and also to have an easier way to visualize it instead of searching for other metrics that have this property set). --- telemetry/definitions/commonDefinitions.json | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/telemetry/definitions/commonDefinitions.json b/telemetry/definitions/commonDefinitions.json index 4a939590..2f232dd2 100644 --- a/telemetry/definitions/commonDefinitions.json +++ b/telemetry/definitions/commonDefinitions.json @@ -1598,6 +1598,19 @@ } ] }, + { + "name": "amazonq_modifySourceFolder", + "description": "User modified source folder", + "metadata": [ + { + "type": "amazonqConversationId" + }, + { + "type": "credentialStartUrl", + "required": false + } + ] + }, { "name": "amazonq_startConversationInvoke", "description": "Captures startConversation invocation process", @@ -5740,4 +5753,4 @@ ] } ] -} \ No newline at end of file +}