Esempio n. 1
0
        public static void Error(Exception ex)
        {
            var ev = new SharpRaven.Data.SentryEvent(ex)
            {
                Level = SharpRaven.Data.ErrorLevel.Error
            };

            ev.Tags.Add("ARCH", Environment.Is64BitOperatingSystem ? "x64" : "x86");
            ev.Tags.Add("OS", Environment.OSVersion.VersionString);
            ev.Tags.Add("NET", Environment.Version.ToString());

            ravenClient.CaptureAsync(ev);
        }
Esempio n. 2
0
 internal ErrorReporterEvent(SharpRaven.Data.SentryEvent reportEvent)
 {
     Event = reportEvent;
 }