1 write to _viewModel
Aspire.Dashboard (1)
Components\Controls\StructuredLogDetails.razor.cs (1)
71_viewModel = ViewModel;
18 references to _viewModel
Aspire.Dashboard (18)
Components\Controls\StructuredLogDetails.razor.cs (18)
63if (!ReferenceEquals(ViewModel, _viewModel)) 66if (ViewModel.LogEntry.InternalId != _viewModel?.LogEntry.InternalId) 75var attributes = _viewModel.LogEntry.Attributes 81TextVisualizerFormat = TextVisualizerFormatHelpers.GetLogFormat(a.Key, _viewModel.LogEntry.Scope.Name, _viewModel.LogEntry.Attributes) 87new TelemetryPropertyViewModel { Name = "Category", Key = KnownStructuredLogFields.CategoryField, Value = _viewModel.LogEntry.Scope.Name } 89if (!string.IsNullOrEmpty(_viewModel.LogEntry.EventName)) 91_contextAttributes.Add(new TelemetryPropertyViewModel { Name = "EventName", Key = KnownStructuredLogFields.EventNameField, Value = _viewModel.LogEntry.EventName }); 93if (HasTelemetryBaggage(_viewModel.LogEntry.TraceId)) 95_contextAttributes.Add(new TelemetryPropertyViewModel { Name = "TraceId", Key = KnownStructuredLogFields.TraceIdField, Value = _viewModel.LogEntry.TraceId }); 97if (HasTelemetryBaggage(_viewModel.LogEntry.SpanId)) 99_contextAttributes.Add(new TelemetryPropertyViewModel { Name = "SpanId", Key = KnownStructuredLogFields.SpanIdField, Value = _viewModel.LogEntry.SpanId }); 107new TelemetryPropertyViewModel { Name = "Level", Key = KnownStructuredLogFields.LevelField, Value = _viewModel.LogEntry.Severity.ToString() }, 112Value = _viewModel.LogEntry.Message, 113TextVisualizerFormat = TextVisualizerFormatHelpers.GetLogMessageFormat(_viewModel.LogEntry.Scope.Name) 128Parameters = { ["TraceId"] = _viewModel.LogEntry.TraceId } 133Parameters = { ["Resource"] = _viewModel.LogEntry.ResourceView.Resource } 138Parameters = { ["LogEntry"] = _viewModel.LogEntry }