File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
src/vs/workbench/services/timer/browser Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ import { IWorkbenchLayoutService } from 'vs/workbench/services/layout/browser/la
1717import { IPaneCompositePartService } from 'vs/workbench/services/panecomposite/browser/panecomposite' ;
1818import { ViewContainerLocation } from 'vs/workbench/common/views' ;
1919import { 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 }
You can’t perform that action at this time.
0 commit comments