-
Notifications
You must be signed in to change notification settings - Fork 62
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
feat(participant): Add telemetry for user feedback VSCODE-601 #812
feat(participant): Add telemetry for user feedback VSCODE-601 #812
Conversation
telemetryTrackStub | ||
.getCalls() | ||
.map((call) => call.args[0]) | ||
.filter((arg) => arg === 'Participant Welcome Shown').length; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we maybe convert this to an individual test? something like tracks the participant welcome shown telemetry
in the suite('telemetry',...)
section?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey, sorry, I had accidentally committed that test - it's part of another branch and I got my wires crossed when doing some rebasing and merging.
CI is also failing with a weird error I haven't seen before. |
The CI build should be fixed when #813 is merged and then main is merged into the copilot branch. |
7d16f2e
to
978de40
Compare
handleUserFeedback(feedback: vscode.ChatResultFeedback): void { | ||
this._telemetryService.trackCopilotParticipantFeedback({ | ||
feedback: chatResultFeedbackKindToTelemetryValue(feedback.kind), | ||
reason: feedback.unhelpfulReason, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If the additions API doesn't make it to stable before we release, we can extract the unhelpful reason as:
let unhelpfulReason: String | undefined;
if ('unhelpfulReason' in feedback) {
unhelpfulReason = feedback.unhelpfulReason as String | undefined;
}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm! Nice chat result refactor
Description
This is part of VSCODE-575 - reporting telemetry for usage of the chat participant component covering the user feedback functionality VSCode provides. The
unhelpfulReason
field is part of thechatParticipantAdditions
API proposal - we may need to tweak the code slightly if it doesn't get promoted to stable before we're ready to publish the extension.Checklist
Motivation and Context
Open Questions
Dependents
Types of changes