Skip to content

telemetry(amazonq): add languageServerVersion for some agentic chat metrics #1019

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 24, 2025

Conversation

chungjac
Copy link
Contributor

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

License

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@chungjac chungjac requested a review from a team as a code owner April 24, 2025 00:33
@jpinkney-aws jpinkney-aws merged commit 7ba7493 into aws:main Apr 24, 2025
5 checks passed
@@ -1169,6 +1169,11 @@
"type": "int",
"description": "Number of code snippets in response"
},
{
"name": "cwsprChatResponseErrorReason",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why are you not using the existing fields reason or reasonDesc ?

Copy link
Contributor Author

@chungjac chungjac Apr 24, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Correct, I haved used the reasonDesc field and not the cwsprChatResponseErrorReason field in this flare pr: aws/language-servers#1076

I was just uplifting the amazonq_messageResponseError metric and its corresponding types from vsc to common

justinmk3 pushed a commit to aws/aws-toolkit-vscode that referenced this pull request Apr 24, 2025
## Problem
- toolkit commons needs to be updated so that certain telemetry events
from flare have `languageServerVersion`

## Solution
- bump aws-toolkit-common version from 1.0.316 to 1.0.317
- remove `amazonq_messageResponseError` because it was uplifted to
common: aws/aws-toolkit-common#1019
opieter-aws pushed a commit to opieter-aws/aws-toolkit-vscode that referenced this pull request Apr 24, 2025
## Problem
- toolkit commons needs to be updated so that certain telemetry events
from flare have `languageServerVersion`

## Solution
- bump aws-toolkit-common version from 1.0.316 to 1.0.317
- remove `amazonq_messageResponseError` because it was uplifted to
common: aws/aws-toolkit-common#1019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants