3 writes to LogEntry
Aspire.Dashboard (2)
Components\Pages\StructuredLogs.razor.cs (1)
322LogEntry = entry
Components\Pages\TraceDetail.razor.cs (1)
540LogEntryViewModel = new StructureLogsDetailsViewModel { LogEntry = logEntry }
Aspire.Dashboard.Components.Tests (1)
Controls\StructuredLogDetailsTests.cs (1)
35LogEntry = new OtlpLogEntry(
28 references to LogEntry
Aspire.Dashboard (28)
Components\Controls\StructuredLogDetails.razor.cs (15)
45ViewModel.LogEntry.ResourceView.AllProperties().Select(p => new TelemetryPropertyViewModel { Name = p.DisplayName, Key = p.Key, Value = p.Value }) 69if (ViewModel.LogEntry.InternalId != _viewModel?.LogEntry.InternalId) 81var attributes = _viewModel.LogEntry.Attributes 87new TelemetryPropertyViewModel { Name = "Category", Key = KnownStructuredLogFields.CategoryField, Value = _viewModel.LogEntry.Scope.Name } 90if (HasTelemetryBaggage(_viewModel.LogEntry.TraceId)) 92_contextAttributes.Add(new TelemetryPropertyViewModel { Name = "TraceId", Key = KnownStructuredLogFields.TraceIdField, Value = _viewModel.LogEntry.TraceId }); 94if (HasTelemetryBaggage(_viewModel.LogEntry.SpanId)) 96_contextAttributes.Add(new TelemetryPropertyViewModel { Name = "SpanId", Key = KnownStructuredLogFields.SpanIdField, Value = _viewModel.LogEntry.SpanId }); 104new TelemetryPropertyViewModel { Name = "Level", Key = KnownStructuredLogFields.LevelField, Value = _viewModel.LogEntry.Severity.ToString() }, 105new TelemetryPropertyViewModel { Name = "Message", Key = KnownStructuredLogFields.MessageField, Value = _viewModel.LogEntry.Message }, 119Parameters = { ["TraceId"] = _viewModel.LogEntry.TraceId } 124Parameters = { ["Resource"] = _viewModel.LogEntry.ResourceView.Resource } 129Parameters = { ["LogEntry"] = _viewModel.LogEntry } 190c.BuildIceBreakers = (builder, context) => builder.StructuredLogs(context, ViewModel.LogEntry);
Components\Pages\StructuredLogs.razor.cs (2)
314if (SelectedLogEntry?.LogEntry.InternalId == entry.InternalId) 422if (entry.InternalId == SelectedLogEntry?.LogEntry.InternalId)
Components\Pages\TraceDetail.razor.cs (2)
395else if (SelectedData?.LogEntryViewModel is { } selectedLog && viewModel.SpanLogs.Any(l => l.LogEntry.InternalId == selectedLog.LogEntry.InternalId)) 532if (SelectedData?.LogEntryViewModel?.LogEntry.InternalId == logEntry.InternalId)
Components_Controls_StructuredLogDetails_razor.g.cs (3)
205__builder2.AddContent(8, (MarkupString)string.Format(ControlsStrings.StructuredLogsDetailsResource, ViewModel.LogEntry.ResourceView.Resource.ResourceName) 254FormatHelpers.FormatTimeWithOptionalDate(TimeProvider, ViewModel.LogEntry.TimeStamp, MillisecondsDisplay.Full) 263__builder2.AddContent(17, (MarkupString)string.Format(ControlsStrings.StructuredLogsDetailsTimestamp, FormatHelpers.FormatTimeWithOptionalDate(TimeProvider, ViewModel.LogEntry.TimeStamp, MillisecondsDisplay.Truncated))
Components_Pages_StructuredLogs_razor.g.cs (3)
1042var eventName = StructureLogsDetailsViewModel.GetEventName(context!.LogEntry, Loc); 1054$"{eventName} ({context!.LogEntry.Scope.Name})" 1075__builder3.AddContent(105, context!.LogEntry.Scope.Name
Components_Pages_TraceDetail_razor.g.cs (3)
1082title = StructureLogsDetailsViewModel.GetEventName(logEntryVm.LogEntry, StructuredLogsLoc); 1083subtitle = logEntryVm.LogEntry.Scope.Name; 2279var isSelected = SelectedData?.LogEntryViewModel?.LogEntry.InternalId == item.LogEntry.InternalId;