public async Task TrackEvent(string eventName, string message, [CallerMemberName] string callerName = "") { var data = new InsightData() { Category = InsightCategory.Event, Message = message, CustomMarker = eventName, CallerName = callerName }; await FillData(data); Store(data); }
public async Task TrackMetric(string category, object value, [CallerMemberName] string callerName = "") { var data = new InsightData() { Category = InsightCategory.Metric, CustomMarker = category, CustomValue = value, CallerName = callerName }; await FillData(data); Store(data); }
public async Task TrackException(Exception ex, [CallerMemberName] string callerName = "") { var data = new InsightData() { Category = InsightCategory.Exception, Message = ex.Message, StackTrace = ex.StackTrace, CallerName = callerName }; await FillData(data); Store(data); }
public async Task TrackMetric(string category, object value, [CallerMemberName] string callerName = "") { try { var data = new InsightData() { Category = InsightCategory.Metric, CustomMarker = category, CustomValue = value, CallerName = callerName }; await FillInThreadData(data); Finalize(data); } catch (Exception ex) { Debug.WriteLine(ex.Message); } }
public async Task TrackEvent(string eventName, string message, [CallerMemberName] string callerName = "") { try { var data = new InsightData() { Category = InsightCategory.Event, Message = message, CustomMarker = eventName, CallerName = callerName }; await FillInThreadData(data); Finalize(data); } catch (Exception ex) { Debug.WriteLine(ex.Message); } }
public async Task TrackException(Exception exception, [CallerMemberName] string callerName = "") { try { var data = new InsightData() { Category = InsightCategory.Exception, Message = exception.Message, StackTrace = exception.StackTrace, CallerName = callerName }; await FillInThreadData(data); Finalize(data); } catch (Exception ex) { Debug.WriteLine(ex.Message); } }