@@ -18,6 +18,9 @@ public sealed class MSBuildLogger : INodeLogger
18
18
internal const string TargetFrameworkTelemetryEventName = "targetframeworkeval" ;
19
19
internal const string BuildTelemetryEventName = "build" ;
20
20
internal const string LoggingConfigurationTelemetryEventName = "loggingConfiguration" ;
21
+ internal const string BuildcheckAcquisitionFailureEventName = "buildcheck/acquisitionfailure" ;
22
+ internal const string BuildcheckRunEventName = "buildcheck/run" ;
23
+ internal const string BuildcheckRuleStatsEventName = "buildcheck/rule" ;
21
24
22
25
internal const string SdkTaskBaseCatchExceptionTelemetryEventName = "taskBaseCatchException" ;
23
26
internal const string PublishPropertiesTelemetryEventName = "PublishProperties" ;
@@ -138,6 +141,21 @@ internal static void FormatAndSend(ITelemetry telemetry, TelemetryEventArgs args
138
141
toBeHashed : Array . Empty < string > ( ) ,
139
142
toBeMeasured : new [ ] { "FileLoggersCount" } ) ;
140
143
break ;
144
+ case BuildcheckAcquisitionFailureEventName :
145
+ TrackEvent ( telemetry , $ "msbuild/{ BuildcheckAcquisitionFailureEventName } ", args . Properties ,
146
+ toBeHashed : new [ ] { "AssemblyName" , "ExceptionType" , "ExceptionMessage" } ,
147
+ toBeMeasured : Array . Empty < string > ( ) ) ;
148
+ break ;
149
+ case BuildcheckRunEventName :
150
+ TrackEvent ( telemetry , $ "msbuild/{ BuildcheckRunEventName } ", args . Properties ,
151
+ toBeHashed : Array . Empty < string > ( ) ,
152
+ toBeMeasured : new [ ] { "TotalRuntimeInMilliseconds" } ) ;
153
+ break ;
154
+ case BuildcheckRuleStatsEventName :
155
+ TrackEvent ( telemetry , $ "msbuild/{ BuildcheckRuleStatsEventName } ", args . Properties ,
156
+ toBeHashed : new [ ] { "RuleId" , "CheckFriendlyName" } ,
157
+ toBeMeasured : new [ ] { "TotalRuntimeInMilliseconds" } ) ;
158
+ break ;
141
159
// Pass through events that don't need special handling
142
160
case SdkTaskBaseCatchExceptionTelemetryEventName :
143
161
case PublishPropertiesTelemetryEventName :
0 commit comments