public static void LogDebuggingStarted(string debuggerName, string nodeVersion, bool isProject = true) { var userTask = new UserTaskEvent(DebbugerStarted, TelemetryResult.Success); userTask.Properties[DebuggerEngine] = debuggerName; userTask.Properties[NodeVersion] = nodeVersion; userTask.Properties[IsProject] = isProject; TelemetryService.DefaultSession.PostEvent(userTask); }
public static void TrackUserTask(string name, params KeyValuePair <string, object>[] properties) { string actualName = name.Replace(" ", "_"); var task = new UserTaskEvent(_namespace + actualName, TelemetryResult.None); foreach (KeyValuePair <string, object> property in properties) { task.Properties.Add(property); } TelemetryService.DefaultSession.PostEvent(task); }
private void LogTelemetry(int testCount, Version nodeVersion, bool isDebugging) { var userTask = new UserTaskEvent("VS/NodejsTools/UnitTestsExecuted", TelemetryResult.Success); userTask.Properties["VS.NodejsTools.TestCount"] = testCount; // This is safe, since changes to the ToString method are very unlikely, as the current output is widely documented. userTask.Properties["VS.NodejsTools.NodeVersion"] = nodeVersion.ToString(); userTask.Properties["VS.NodejsTools.IsDebugging"] = isDebugging; //todo: when we have support for the Node 8 debugger log which version of the debugger people are actually using TelemetryService.DefaultSession?.PostEvent(userTask); }
public void PostUserTask(TelemetryIdentifier telemetryIdentifier, TelemetryResult result, IEnumerable <DataPoint> properties) { //IL_0014: Unknown result type (might be due to invalid IL or missing references) //IL_0016: Unknown result type (might be due to invalid IL or missing references) //IL_001c: Expected O, but got Unknown if (telemetryIdentifier == null) { throw new ArgumentNullException("telemetryIdentifier"); } UserTaskEvent val = (UserTaskEvent)(object)new UserTaskEvent(telemetryIdentifier.Value, result, (string)null); DataPointCollection.AddCollectionToDictionary(properties, ((TelemetryEvent)val).Properties); telemetryRecorder.RecordEvent((TelemetryEvent)(object)val); }
public void PostUserTask(TelemetryIdentifier telemetryIdentifier, TelemetryResult result) { //IL_0014: Unknown result type (might be due to invalid IL or missing references) //IL_0016: Unknown result type (might be due to invalid IL or missing references) //IL_001c: Expected O, but got Unknown //IL_002b: Unknown result type (might be due to invalid IL or missing references) //IL_0030: Unknown result type (might be due to invalid IL or missing references) if (telemetryIdentifier == null) { throw new ArgumentNullException("telemetryIdentifier"); } UserTaskEvent val = (UserTaskEvent)(object)new UserTaskEvent(telemetryIdentifier.Value, result, (string)null); EndEvent.Correlate(((TelemetryEvent)val).Correlation); TelemetryRecorder.RecordEvent((TelemetryEvent)(object)val); }
public static void ResetInvoked() { var telEvent = new UserTaskEvent(_namespace + "TimeToClose", TelemetryResult.Success); TelemetryService.DefaultSession.PostEvent(telEvent); }