Add setting to allow control over telemetry event writing#777
Conversation
Misspellings found, please review:
To accept these changes, run the following commands from this repository on this branch |
|
|
||
| The `telemetry` settings control whether winget writes ETW events that may be sent to Microsoft on a default installation of Windows. | ||
|
|
||
| Details on telemetry can be found [here](/README.md#datatelemetry), and our primary privacy statement can be found [here](/privacy.md). |
There was a problem hiding this comment.
Please don't linkify here. See F84: Failure of Success Criterion 2.4.9 due to using a non-specific link such as "click here" or "more" without a mechanism to change the link text to specific text.
| Details on telemetry can be found [here](/README.md#datatelemetry), and our primary privacy statement can be found [here](/privacy.md). | |
| See [details on telemetry](../README.md#datatelemetry), and our [primary privacy statement](/privacy.md). |
(And can you add the missing newline character to .github/actions/spelling/patterns.txt while you're updating this PR?)
There was a problem hiding this comment.
Thanks for pointing this out, and yes, I will add the newline.
Just found out it's unnecessary use of allOf and all below ""additionalItems": true" are incorrect. "additionalItems" were for array types. We should revisit this when we do schema validation on settings file Refers to: schemas/JSON/settings/settings.schema.0.2.json:85 in 717b4b6. [](commit_id = 717b4b6, deletion_comment = False) |
| using namespace std::string_view_literals; | ||
|
|
||
| namespace AppInstaller::Settings | ||
| { |
There was a problem hiding this comment.
why we move usings outside for this one specifically?
There was a problem hiding this comment.
Putting the using statements inside the namespace imports them into that namespace. So AppInstaller::Settings would now have definitions for sv, ms, etc.
Fixes #279
Change
Adds a setting to allow control over telemetry event writing.
When disabled, the ETW events will not be written at all.
Validation
Manually ran ETW event log listener with setting in both states; noted lack of events when disabled.
Microsoft Reviewers: Open in CodeFlow