2 writes to LogEntry
Aspire.Dashboard (1)
Components\Pages\StructuredLogs.razor.cs (1)
268LogEntry = entry
Aspire.Dashboard.Components.Tests (1)
Controls\StructuredLogDetailsTests.cs (1)
35LogEntry = new OtlpLogEntry(
15 references to LogEntry
Aspire.Dashboard (15)
Components\Controls\StructuredLogDetails.razor.cs (13)
32ViewModel.LogEntry.ApplicationView.AllProperties().Select(p => new TelemetryPropertyViewModel { Name = p.DisplayName, Key = p.Key, Value = p.Value }) 48if (ViewModel.LogEntry.InternalId != _viewModel?.LogEntry.InternalId) 57var attributes = _viewModel.LogEntry.Attributes 63new TelemetryPropertyViewModel { Name ="Category", Key = KnownStructuredLogFields.CategoryField, Value = _viewModel.LogEntry.Scope.Name } 66if (HasTelemetryBaggage(_viewModel.LogEntry.TraceId)) 68_contextAttributes.Add(new TelemetryPropertyViewModel { Name = "TraceId", Key = KnownStructuredLogFields.TraceIdField, Value = _viewModel.LogEntry.TraceId }); 70if (HasTelemetryBaggage(_viewModel.LogEntry.SpanId)) 72_contextAttributes.Add(new TelemetryPropertyViewModel { Name = "SpanId", Key = KnownStructuredLogFields.SpanIdField, Value = _viewModel.LogEntry.SpanId }); 74if (HasTelemetryBaggage(_viewModel.LogEntry.ParentId)) 76_contextAttributes.Add(new TelemetryPropertyViewModel { Name = "ParentId", Key = KnownStructuredLogFields.ParentIdField, Value = _viewModel.LogEntry.ParentId }); 84new TelemetryPropertyViewModel { Name = "Level", Key = KnownStructuredLogFields.LevelField, Value = _viewModel.LogEntry.Severity.ToString() }, 85new TelemetryPropertyViewModel { Name = "Message", Key = KnownStructuredLogFields.MessageField, Value = _viewModel.LogEntry.Message },
Components\Pages\StructuredLogs.razor.cs (2)
260if (SelectedLogEntry?.LogEntry.InternalId == entry.InternalId) 358if (entry.InternalId == SelectedLogEntry?.LogEntry.InternalId)