Example #1
0
        // Token: 0x06002560 RID: 9568 RVA: 0x00087778 File Offset: 0x00085978
        public static void SaveTraces()
        {
            Globals.TroubleshootingContext.TraceOperationCompletedAndUpdateContext();
            RequestDetailsLogger requestDetailsLogger = RequestDetailsLogger.Current;

            if (requestDetailsLogger != null && OwaServerTraceLogger.IsInterestingFailure(requestDetailsLogger.ActivityScope) && Globals.LogErrorTraces)
            {
                OwaServerTraceLogger.InternalSaveTraces(requestDetailsLogger.ActivityScope, Globals.TroubleshootingContext);
            }
        }
Example #2
0
        // Token: 0x06002562 RID: 9570 RVA: 0x000877D8 File Offset: 0x000859D8
        private static bool IsInterestingFailure(IActivityScope activityScope)
        {
            bool   flag      = OwaServerTraceLogger.IsOverPerfThreshold(activityScope.TotalMilliseconds);
            string property  = activityScope.GetProperty(ServiceCommonMetadata.ErrorCode);
            string property2 = activityScope.GetProperty(ServiceCommonMetadata.GenericErrors);

            if (string.IsNullOrEmpty(property) && string.IsNullOrEmpty(property2))
            {
                return(flag);
            }
            return(property == null || !property.Contains("NotFound") || flag);
        }