Skip to content

Commit 7ba7493

Browse files
authored
telemetry(amazonq): add languageServerVersion for some agentic chat metrics (#1019)
## Problem - do not have flare `languageServerVersion` in agentic chat metrics ## Solution - add `languageServerVersion` for these metrics: - `amazonq_addMessage` - `amazonq_messageResponseError` - `amazonq_toolUseSuggested` - `amazonq_interactWithAgenticChat` - uplift `amazonq_messageResponseError` from vsc to common <!--- REMINDER: - Read CONTRIBUTING.md first. - Add test coverage for your changes. - Link to related issues/commits. - Testing: how did you test your changes? - Screenshots if applicable --> ## License By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
1 parent 2c39a92 commit 7ba7493

File tree

1 file changed

+71
-0
lines changed

1 file changed

+71
-0
lines changed

telemetry/definitions/commonDefinitions.json

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1169,6 +1169,11 @@
11691169
"type": "int",
11701170
"description": "Number of code snippets in response"
11711171
},
1172+
{
1173+
"name": "cwsprChatResponseErrorReason",
1174+
"type": "string",
1175+
"description": "Client error reason when processing response stream"
1176+
},
11721177
{
11731178
"name": "cwsprChatResponseLength",
11741179
"type": "int",
@@ -2396,6 +2401,10 @@
23962401
{
23972402
"type": "cwsprChatWorkspaceContextTruncatedLength",
23982403
"required": false
2404+
},
2405+
{
2406+
"type": "languageServerVersion",
2407+
"required": false
23992408
}
24002409
]
24012410
},
@@ -2630,6 +2639,10 @@
26302639
},
26312640
{
26322641
"type": "cwsprChatConversationType"
2642+
},
2643+
{
2644+
"type": "languageServerVersion",
2645+
"required": false
26332646
}
26342647
]
26352648
},
@@ -2775,6 +2788,60 @@
27752788
}
27762789
]
27772790
},
2791+
{
2792+
"name": "amazonq_messageResponseError",
2793+
"description": "When an error has occured in response to a prompt",
2794+
"metadata": [
2795+
{
2796+
"type": "credentialStartUrl",
2797+
"required": false
2798+
},
2799+
{
2800+
"type": "cwsprChatActiveEditorImportCount",
2801+
"required": false
2802+
},
2803+
{
2804+
"type": "cwsprChatActiveEditorTotalCharacters",
2805+
"required": false
2806+
},
2807+
{
2808+
"type": "cwsprChatConversationId",
2809+
"required": false
2810+
},
2811+
{
2812+
"type": "cwsprChatConversationType"
2813+
},
2814+
{
2815+
"type": "cwsprChatHasCodeSnippet",
2816+
"required": false
2817+
},
2818+
{
2819+
"type": "cwsprChatProgrammingLanguage",
2820+
"required": false
2821+
},
2822+
{
2823+
"type": "cwsprChatRequestLength"
2824+
},
2825+
{
2826+
"type": "cwsprChatResponseCode"
2827+
},
2828+
{
2829+
"type": "cwsprChatResponseErrorReason",
2830+
"required": false
2831+
},
2832+
{
2833+
"type": "cwsprChatTriggerInteraction"
2834+
},
2835+
{
2836+
"type": "cwsprChatUserIntent",
2837+
"required": false
2838+
},
2839+
{
2840+
"type": "languageServerVersion",
2841+
"required": false
2842+
}
2843+
]
2844+
},
27782845
{
27792846
"name": "amazonq_modifySourceFolder",
27802847
"description": "User modified source folder",
@@ -2849,6 +2916,10 @@
28492916
},
28502917
{
28512918
"type": "cwsprToolUseId"
2919+
},
2920+
{
2921+
"type": "languageServerVersion",
2922+
"required": false
28522923
}
28532924
]
28542925
},

0 commit comments

Comments
 (0)