/// <summary> /// Send a report to Backtrace API /// </summary> /// <param name="report">Report to send</param> /// <param name="sendCallback">Send report callback</param> public void Send(BacktraceReport report, Action <BacktraceResult> sendCallback = null) { if (!ShouldSendReport(report)) { return; } Breadcrumbs?.FromBacktrace(report); SendReport(report, sendCallback); }
/// <summary> /// Send an exception to Backtrace API /// </summary> /// <param name="exception">Report exception</param> /// <param name="attachmentPaths">List of attachments</param> /// <param name="attributes">List of report attributes</param public void Send(Exception exception, List <string> attachmentPaths = null, Dictionary <string, string> attributes = null) { if (!ShouldSendReport(exception, attachmentPaths, attributes)) { return; } var report = new BacktraceReport(exception, attributes, attachmentPaths); Breadcrumbs?.FromBacktrace(report); SendReport(report); }
/// <summary> /// Send a message report to Backtrace API /// </summary> /// <param name="message">Report message</param> /// <param name="attachmentPaths">List of attachments</param> /// <param name="attributes">List of report attributes</param> public void Send(string message, List <string> attachmentPaths = null, Dictionary <string, string> attributes = null) { if (!ShouldSendReport(message, attachmentPaths, attributes)) { return; } var report = new BacktraceReport( message: message, attachmentPaths: attachmentPaths, attributes: attributes); Breadcrumbs?.FromBacktrace(report); SendReport(report); }