diff --git a/src/Aspire.Dashboard/Components/Pages/TraceDetail.razor b/src/Aspire.Dashboard/Components/Pages/TraceDetail.razor index a28692be6a..dce0e5eaf5 100644 --- a/src/Aspire.Dashboard/Components/Pages/TraceDetail.razor +++ b/src/Aspire.Dashboard/Components/Pages/TraceDetail.razor @@ -7,6 +7,7 @@ @using Aspire.Dashboard.Otlp.Model @using Aspire.Dashboard.Otlp.Storage @using System.Diagnostics +@using System.Globalization @inject IDashboardViewModelService DashboardViewModelService @DashboardViewModelService.ApplicationName Traces @@ -93,7 +94,7 @@
-
+
@context.Span.Source.ApplicationName: @context.GetDisplaySummary() diff --git a/src/Aspire.Dashboard/Components/Pages/Traces.razor.cs b/src/Aspire.Dashboard/Components/Pages/Traces.razor.cs index 248a81df27..6fa645b941 100644 --- a/src/Aspire.Dashboard/Components/Pages/Traces.razor.cs +++ b/src/Aspire.Dashboard/Components/Pages/Traces.razor.cs @@ -1,6 +1,7 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +using System.Globalization; using Aspire.Dashboard.Model; using Aspire.Dashboard.Model.Otlp; using Aspire.Dashboard.Otlp.Model; @@ -43,7 +44,7 @@ private string GetRowStyle(OtlpTrace trace) percentage = trace.Duration / ViewModel.MaxDuration * 100.0; } - return $"background: linear-gradient(to right, var(--neutral-fill-input-alt-active) {percentage:0.##}%, transparent {percentage:0.##}%);"; + return string.Create(CultureInfo.InvariantCulture, $"background: linear-gradient(to right, var(--neutral-fill-input-alt-active) {percentage:0.##}%, transparent {percentage:0.##}%);"); } private static string GetTooltip(IGrouping applicationSpans)