Skip to content
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

Measure whether CodeWhisperer is enabled or not #699

Merged
merged 1 commit into from
Feb 16, 2024

Conversation

awschristou
Copy link
Contributor

Problem

We want to understand how often users turn CodeWhisperer on or off.

Solution

Measure the current state at startup, and when explicitly turned on/off.

License

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

@awschristou awschristou requested a review from a team as a code owner February 16, 2024 19:59
{
"name": "codewhisperer_enabled",
"description": "Whether or not CodeWhisperer is enabled",
"passive": true,
Copy link
Contributor

@shruti0085 shruti0085 Feb 16, 2024

Choose a reason for hiding this comment

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

Shouldn't this be false for when state change occurs? Users would have explicitly toggled this then.

Copy link
Contributor

@justinmk3 justinmk3 Feb 16, 2024

Choose a reason for hiding this comment

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

Yeah this doesn't seem passive. Also could use the existing metric aws_modifySetting (which is not passive):

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Because this event can occur at arbitrary times (like startup), it should never be set to active, as this would generate false actives. This metric isn't critical in measuring active use (there are other actions/metrics that do this), so having perfect "active use" fidelity around this metric would not give us any additional insights.

@awschristou awschristou merged commit 5163b79 into main Feb 16, 2024
7 checks passed
@awschristou awschristou deleted the awschristou/cwspr-enabled-metric branch February 16, 2024 21:24
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