14 instantiations of TelemetryPropertyViewModel
Aspire.Dashboard (14)
Components\Controls\SpanDetails.razor.cs (5)
39ViewModel.Span.Source.AllProperties().Select(p => new TelemetryPropertyViewModel { Name = p.DisplayName, Key = p.Key, Value = p.Value }) 90new TelemetryPropertyViewModel { Name = "Source", Key = KnownSourceFields.NameField, Value = _viewModel.Span.Scope.ScopeName } 94_contextAttributes.Add(new TelemetryPropertyViewModel { Name = "Version", Key = KnownSourceFields.VersionField, Value = _viewModel.Span.Scope.Version }); 98_contextAttributes.Add(new TelemetryPropertyViewModel { Name = "ParentId", Key = KnownTraceFields.ParentIdField, Value = _viewModel.Span.ParentSpanId }); 102_contextAttributes.Add(new TelemetryPropertyViewModel { Name = "TraceId", Key = KnownTraceFields.TraceIdField, Value = _viewModel.Span.TraceId });
Components\Controls\StructuredLogDetails.razor.cs (8)
32ViewModel.LogEntry.ApplicationView.AllProperties().Select(p => new TelemetryPropertyViewModel { Name = p.DisplayName, Key = p.Key, Value = p.Value }) 58.Select(a => new TelemetryPropertyViewModel { Name = a.Key, Key = $"unknown-{a.Key}", Value = a.Value }) 63new TelemetryPropertyViewModel { Name ="Category", Key = KnownStructuredLogFields.CategoryField, Value = _viewModel.LogEntry.Scope.ScopeName } 68_contextAttributes.Add(new TelemetryPropertyViewModel { Name = "TraceId", Key = KnownStructuredLogFields.TraceIdField, Value = _viewModel.LogEntry.TraceId }); 72_contextAttributes.Add(new TelemetryPropertyViewModel { Name = "SpanId", Key = KnownStructuredLogFields.SpanIdField, Value = _viewModel.LogEntry.SpanId }); 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\TraceDetail.razor.cs (1)
234.Select(f => new TelemetryPropertyViewModel { Name = f.DisplayName, Key = f.Key, Value = f.Value })
17 references to TelemetryPropertyViewModel
Aspire.Dashboard (16)
Components\Controls\SpanDetails.razor.cs (5)
32private IQueryable<TelemetryPropertyViewModel> FilteredItems => 35private IQueryable<TelemetryPropertyViewModel> FilteredContextItems => 38private IQueryable<TelemetryPropertyViewModel> FilteredResourceItems => 56private List<TelemetryPropertyViewModel> _contextAttributes = null!; 65private bool ApplyFilter(TelemetryPropertyViewModel vm)
Components\Controls\StructuredLogDetails.razor.cs (11)
22internal IQueryable<TelemetryPropertyViewModel> FilteredItems => 25internal IQueryable<TelemetryPropertyViewModel> FilteredExceptionItems => 28internal IQueryable<TelemetryPropertyViewModel> FilteredContextItems => 31internal IQueryable<TelemetryPropertyViewModel> FilteredResourceItems => 39private List<TelemetryPropertyViewModel> _logEntryAttributes = null!; 40private List<TelemetryPropertyViewModel> _contextAttributes = null!; 41private List<TelemetryPropertyViewModel> _exceptionAttributes = null!; 104private static void MoveAttributes(List<TelemetryPropertyViewModel> source, List<TelemetryPropertyViewModel> destination, Func<TelemetryPropertyViewModel, bool> predicate) 117private bool ApplyFilter(TelemetryPropertyViewModel vm)
Aspire.Dashboard.Components.Tests (1)
Controls\StructuredLogDetailsTests.cs (1)
67static void AssertUniqueKeys(IEnumerable<TelemetryPropertyViewModel> properties)