/// <summary> /// Send an exception message with stack trace to sentry server. /// </summary> /// <param name="message">The description of the captured exception</param> /// <param name="stackTrace">The stack trace of the captured exception</param> /// <param name="tags"></param> public void CaptureException(string message, System.Diagnostics.StackTrace stackTrace, Dictionary <string, string> tags = null) { if (m_valid) { ExceptionPacket packet = new ExceptionPacket(m_sentryConfig, message, stackTrace, tags); Send(packet.ToJson()); } }
/// <summary> /// Send an exception message with stack trace to sentry server. /// </summary> /// <param name="message">The description of the captured exception</param> /// <param name="stackTrace">The stack trace of the captured exception</param> /// <param name="tags"></param> public void CaptureException(string message, string stackTrace, Dictionary <string, string> tags = null) { if (m_valid) { ExceptionPacket packet = new ExceptionPacket(message, stackTrace, tags); Send(packet.ToJson()); } }