diff --git a/src/Aspire.Dashboard/Components/Pages/StructuredLogs.razor b/src/Aspire.Dashboard/Components/Pages/StructuredLogs.razor index 0fe48bfdff6..8bd27f95811 100644 --- a/src/Aspire.Dashboard/Components/Pages/StructuredLogs.razor +++ b/src/Aspire.Dashboard/Components/Pages/StructuredLogs.razor @@ -104,9 +104,7 @@ OnResize="@(r => _manager.SetWidthFraction(r.Orientation == Orientation.Horizontal ? r.Panel1Fraction : 1))"> @{ - var eventName = OtlpHelpers.GetValue(context!.LogEntry.Attributes, "event.name") - ?? OtlpHelpers.GetValue(context!.LogEntry.Attributes, "logrecord.event.name") - ?? Loc[nameof(Dashboard.Resources.StructuredLogs.StructuredLogsEntryDetails)]; + var eventName = StructureLogsDetailsViewModel.GetEventName(context!.LogEntry, Loc); }
diff --git a/src/Aspire.Dashboard/Components/Pages/TraceDetail.razor b/src/Aspire.Dashboard/Components/Pages/TraceDetail.razor index 0b2180fc2ec..336b30ec834 100644 --- a/src/Aspire.Dashboard/Components/Pages/TraceDetail.razor +++ b/src/Aspire.Dashboard/Components/Pages/TraceDetail.razor @@ -6,8 +6,6 @@ @using Aspire.Dashboard.Components.Controls.Grid @using Aspire.Dashboard.Resources @using Aspire.Dashboard.Utils -@inject IStringLocalizer Loc -@inject IStringLocalizer ControlStringsLoc + IsSummaryDetailsViewOpen="@(SelectedData is not null)">