Add badclient telemetry property

TS will now notify us if it thinks the error was caused by the client instead of by a server error
This commit is contained in:
Matt Bierner 2021-04-07 18:49:06 -07:00
parent 513f207296
commit e5ef9895b6
No known key found for this signature in database
GPG key ID: 099C331567E11888

View file

@ -39,13 +39,15 @@ export class TypeScriptServerError extends Error {
"TypeScriptRequestErrorProperties" : {
"command" : { "classification": "SystemMetaData", "purpose": "FeatureInsight" },
"serverid" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth" },
"sanitizedstack" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth" }
"sanitizedstack" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth" },
"badclient" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth" }
}
*/
return {
command: this.serverCommand,
serverid: this.serverId,
sanitizedstack: this.sanitizedStack || '',
badclient: /\bBADCLIENT\b/.test(this.stack || ''),
} as const;
}