未验证 提交 68df4365 编写于 作者: S SteVen Batten 提交者: GitHub

adding telemtetry to detect machine id guids (#67955)

* adding telemtetry to detect machine id guids

* better condition

* stricter

* fix for regex
上级 476d7fe0
......@@ -61,6 +61,17 @@ export class TelemetryService implements ITelemetryService {
*/
this.publicLog('optInStatus', { optIn: this._userOptIn });
}
this._commonProperties.then(values => {
const isHashedId = /^[a-f0-9]+$/i.test(values['common.machineId']);
/* __GDPR__
"machineIdFallback" : {
"usingFallbackGuid" : { "classification": "SystemMetaData", "purpose": "BusinessInsight", "isMeasurement": true }
}
*/
this.publicLog('machineIdFallback', { usingFallbackGuid: !isHashedId });
});
}
private _updateUserOptIn(): void {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册