[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
Description
Emit a metric when users opt in or out of telemetry sharing. This retains existing behavior of clearing any queued up metric events when disabling telemetry before producing the new event.
Checklist
[x] My code follows the code style of this project
[x] I have added tests to cover my changes
[ ] A short description of the change has been added to the CHANGELOG if the change is customer-facing in the IDE.
[ ] I have added metrics for my changes (if required)
License
I confirm that my contribution is made under the terms of the Apache 2.0 license.
Types of changes
Description
Emit a metric when users opt in or out of telemetry sharing. This retains existing behavior of clearing any queued up metric events when disabling telemetry before producing the new event.
Checklist
License
I confirm that my contribution is made under the terms of the Apache 2.0 license.