Skip to content

Commit a1d4263

Browse files
authored
Exempt perf markers from telemetry cleaning (microsoft#166508)
1 parent 1f50215 commit a1d4263

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/vs/workbench/services/timer/browser/timerService.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ import { IWorkbenchLayoutService } from 'vs/workbench/services/layout/browser/la
1717
import { IPaneCompositePartService } from 'vs/workbench/services/panecomposite/browser/panecomposite';
1818
import { ViewContainerLocation } from 'vs/workbench/common/views';
1919
import { StopWatch } from 'vs/base/common/stopwatch';
20+
import { TrustedTelemetryValue } from 'vs/platform/telemetry/common/telemetryUtils';
2021

2122
/* __GDPR__FRAGMENT__
2223
"IMemoryInfo" : {
@@ -583,7 +584,7 @@ export abstract class AbstractTimerService implements ITimerService {
583584
// event and it is "normalized" to a relative timestamp where the first mark
584585
// defines the start
585586

586-
type Mark = { source: string; name: string; startTime: number };
587+
type Mark = { source: string; name: TrustedTelemetryValue; startTime: number };
587588
type MarkClassification = {
588589
owner: 'jrieken';
589590
comment: 'Information about a performance marker';
@@ -595,7 +596,7 @@ export abstract class AbstractTimerService implements ITimerService {
595596
for (const mark of marks) {
596597
this._telemetryService.publicLog2<Mark, MarkClassification>('startup.timer.mark', {
597598
source,
598-
name: mark.name,
599+
name: new TrustedTelemetryValue(mark.name),
599600
startTime: mark.startTime
600601
});
601602
}

0 commit comments

Comments
 (0)