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

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;
}