Skip to content
This repository was archived by the owner on Mar 19, 2026. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace Orc.Monitoring.Reporters.ReportOutputs;
namespace Orc.Monitoring.Reporters.ReportOutputs;

using System;
using System.Collections.Generic;
Expand Down Expand Up @@ -118,7 +118,7 @@ public ReportItem UpdateReportItemEnding(MethodCallEnd end, IMethodCallReporter?
var endTime = end.TimeStamp;

reportItem.EndTime = endTime.ToString("yyyy-MM-dd HH:mm:ss.fff");
reportItem.Duration = (endTime - DateTime.Parse(reportItem.StartTime ?? string.Empty)).TotalMilliseconds.ToString("N1", CultureInfo.InvariantCulture);
reportItem.Duration = (endTime - DateTime.Parse(reportItem.StartTime ?? string.Empty)).TotalMilliseconds.ToString("F1", CultureInfo.InvariantCulture);
reportItem.Parameters = end.MethodCallInfo.Parameters ?? new Dictionary<string, string>();

_logger.LogDebug($"Updated report item: {reportItem.MethodName}, Id: {reportItem.Id}, StartTime: {reportItem.StartTime}, EndTime: {reportItem.EndTime}, Duration: {reportItem.Duration}ms");
Expand All @@ -133,7 +133,7 @@ public ReportItem CreateGapReportItem(CallGap gap, IMethodCallReporter? reporter
Id = Guid.NewGuid().ToString(),
StartTime = gap.TimeStamp.ToString("yyyy-MM-dd HH:mm:ss.fff"),
EndTime = (gap.TimeStamp + gap.Elapsed).ToString("yyyy-MM-dd HH:mm:ss.fff"),
Duration = gap.Elapsed.TotalMilliseconds.ToString("N1", CultureInfo.InvariantCulture),
Duration = gap.Elapsed.TotalMilliseconds.ToString("F1", CultureInfo.InvariantCulture),
Report = reporter?.FullName ?? string.Empty,
ThreadId = string.Empty,
Level = string.Empty,
Expand Down