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:
parent
513f207296
commit
e5ef9895b6
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue