1 write to _viewModel
Aspire.Dashboard (1)
Components\Controls\StructuredLogDetails.razor.cs (1)
72_viewModel = ViewModel;
18 references to _viewModel
Aspire.Dashboard (18)
Components\Controls\StructuredLogDetails.razor.cs (18)
64if (!ReferenceEquals(ViewModel, _viewModel)) 67if (ViewModel.LogEntry.InternalId != _viewModel?.LogEntry.InternalId) 76var attributes = _viewModel.LogEntry.Attributes 82TextVisualizerFormat = TextVisualizerFormatHelpers.GetLogFormat(a.Key, _viewModel.LogEntry.Scope.Name, _viewModel.LogEntry.Attributes) 88new TelemetryPropertyViewModel { Name = "Category", Key = KnownStructuredLogFields.CategoryField, Value = _viewModel.LogEntry.Scope.Name } 90if (!string.IsNullOrEmpty(_viewModel.LogEntry.EventName)) 92_contextAttributes.Add(new TelemetryPropertyViewModel { Name = "EventName", Key = KnownStructuredLogFields.EventNameField, Value = _viewModel.LogEntry.EventName }); 94if (HasTelemetryBaggage(_viewModel.LogEntry.TraceId)) 96_contextAttributes.Add(new TelemetryPropertyViewModel { Name = "TraceId", Key = KnownStructuredLogFields.TraceIdField, Value = _viewModel.LogEntry.TraceId }); 98if (HasTelemetryBaggage(_viewModel.LogEntry.SpanId)) 100_contextAttributes.Add(new TelemetryPropertyViewModel { Name = "SpanId", Key = KnownStructuredLogFields.SpanIdField, Value = _viewModel.LogEntry.SpanId }); 108new TelemetryPropertyViewModel { Name = "Level", Key = KnownStructuredLogFields.LevelField, Value = _viewModel.LogEntry.Severity.ToString() }, 113Value = _viewModel.LogEntry.Message, 114TextVisualizerFormat = TextVisualizerFormatHelpers.GetLogMessageFormat(_viewModel.LogEntry.Scope.Name) 129Parameters = { ["TraceId"] = _viewModel.LogEntry.TraceId } 134Parameters = { ["Resource"] = _viewModel.LogEntry.ResourceView.Resource } 139Parameters = { ["LogEntry"] = _viewModel.LogEntry }