示例#1
0
        // Token: 0x06002563 RID: 9571 RVA: 0x00087834 File Offset: 0x00085A34
        private static void InternalSaveTraces(IActivityScope activityScope, TroubleshootingContext troubleshootingContext)
        {
            IEnumerable <TraceEntry> traces = troubleshootingContext.GetTraces();
            string eventId = activityScope.GetProperty(ExtensibleLoggerMetadata.EventId) + "_Trace";

            foreach (TraceEntry entry in traces)
            {
                OwaServerTraceLogger.TraceLogEvent logEvent = new OwaServerTraceLogger.TraceLogEvent(activityScope, entry, eventId);
                OwaServerTraceLogger.instance.LogEvent(logEvent);
            }
        }
示例#2
0
 public static void SendReportForCriticalException(HttpContext context, Exception exception)
 {
     if (exception.IsUICriticalException() && exception.IsControlPanelException())
     {
         ExWatson.AddExtraData(ErrorHandlingUtil.GetEcpWatsonExtraData(context, exception));
         EcpPerfCounters.SendWatson.Increment();
         RbacPrincipal rbacPrincipal = context.User as RbacPrincipal;
         if (rbacPrincipal != null && ExTraceConfiguration.Instance.InMemoryTracingEnabled)
         {
             TroubleshootingContext troubleshootingContext = rbacPrincipal.RbacConfiguration.TroubleshootingContext;
             troubleshootingContext.SendTroubleshootingReportWithTraces(exception, ErrorHandlingUtil.GetEcpWatsonTitle(exception, context));
             return;
         }
         ExWatson.SendReport(exception, ReportOptions.ReportTerminateAfterSend, exception.GetCustomMessage());
     }
 }