1 write to _viewModel
Aspire.Dashboard (1)
Components\Controls\SpanDetails.razor.cs (1)
92_viewModel = ViewModel;
12 references to _viewModel
Aspire.Dashboard (12)
Components\Controls\SpanDetails.razor.cs (12)
84if (!ReferenceEquals(ViewModel, _viewModel)) 87if (!string.Equals(ViewModel.Span.SpanId, _viewModel?.Span.SpanId, StringComparisons.OtlpSpanId)) 96new TelemetryPropertyViewModel { Name = "Source", Key = KnownSourceFields.NameField, Value = _viewModel.Span.Scope.Name } 98if (!string.IsNullOrEmpty(_viewModel.Span.Scope.Version)) 100_contextAttributes.Add(new TelemetryPropertyViewModel { Name = "Version", Key = KnownSourceFields.VersionField, Value = _viewModel.Span.Scope.Version }); 102if (!string.IsNullOrEmpty(_viewModel.Span.ParentSpanId)) 104_contextAttributes.Add(new TelemetryPropertyViewModel { Name = "ParentId", Key = KnownTraceFields.ParentIdField, Value = _viewModel.Span.ParentSpanId }); 106if (!string.IsNullOrEmpty(_viewModel.Span.TraceId)) 108_contextAttributes.Add(new TelemetryPropertyViewModel { Name = "TraceId", Key = KnownTraceFields.TraceIdField, Value = _viewModel.Span.TraceId }); 112_isSpanEventsExpanded = _viewModel.Span.Events.Any(); 113_isSpanLinksExpanded = _viewModel.Span.Links.Any(); 114_isSpanBacklinksExpanded = _viewModel.Span.BackLinks.Any();