Skip to content

Commit ab5e5d0

Browse files
committed
Update telemetry tests for GDPR related changes
1 parent 5264844 commit ab5e5d0

2 files changed

Lines changed: 100 additions & 98 deletions

File tree

src/vs/platform/telemetry/browser/errorTelemetry.ts

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ import { safeStringify } from 'vs/base/common/objects';
2222
"file" : { "classification": "CallstackOrException", "purpose": "PerformanceAndHealth" },
2323
"line": { "classification": "CallstackOrException", "purpose": "PerformanceAndHealth", "isMeasurement": true },
2424
"column": { "classification": "CallstackOrException", "purpose": "PerformanceAndHealth", "isMeasurement": true },
25-
"name": { "classification": "CallstackOrException", "purpose": "PerformanceAndHealth" },
25+
"uncaught_error_name": { "classification": "CallstackOrException", "purpose": "PerformanceAndHealth" },
26+
"uncaught_error_msg": { "classification": "CallstackOrException", "purpose": "PerformanceAndHealth" },
2627
"count": { "classification": "CallstackOrException", "purpose": "PerformanceAndHealth", "isMeasurement": true }
2728
}
2829
*/
@@ -32,7 +33,8 @@ interface ErrorEvent {
3233
file?: string;
3334
line?: number;
3435
column?: number;
35-
name?: string;
36+
uncaught_error_name?: string;
37+
uncaught_error_msg?: string;
3638
count?: number;
3739
}
3840

@@ -125,9 +127,9 @@ export default class ErrorTelemetry {
125127

126128
if (err) {
127129
let { name, message, stack } = err;
128-
data.name = name;
130+
data.uncaught_error_name = name;
129131
if (message) {
130-
data.msg = message;
132+
data.uncaught_error_msg = message;
131133
}
132134
if (stack) {
133135
data.callstack = Array.isArray(err.stack)

0 commit comments

Comments
 (0)