14 instantiations of TelemetryPropertyViewModel
Aspire.Dashboard (14)
Components\Controls\SpanDetails.razor.cs (5)
35ViewModel.Span.Source.AllProperties().Select(p => new TelemetryPropertyViewModel { Name = p.DisplayName, Key = p.Key, Value = p.Value }) 66new TelemetryPropertyViewModel { Name = "Source", Key = KnownSourceFields.NameField, Value = ViewModel.Span.Scope.ScopeName } 70_contextAttributes.Add(new TelemetryPropertyViewModel { Name = "Version", Key = KnownSourceFields.VersionField, Value = ViewModel.Span.Scope.ScopeName }); 74_contextAttributes.Add(new TelemetryPropertyViewModel { Name = "ParentId", Key = KnownTraceFields.ParentIdField, Value = ViewModel.Span.ParentSpanId }); 78_contextAttributes.Add(new TelemetryPropertyViewModel { Name = "TraceId", Key = KnownTraceFields.TraceIdField, Value = ViewModel.Span.TraceId });
Components\Controls\StructuredLogDetails.razor.cs (8)
28ViewModel.LogEntry.ApplicationView.AllProperties().Select(p => new TelemetryPropertyViewModel { Name = p.DisplayName, Key = p.Key, Value = p.Value }) 42.Select(a => new TelemetryPropertyViewModel { Name = a.Key, Key = $"unknown-{a.Key}", Value = a.Value }) 47new TelemetryPropertyViewModel { Name ="Category", Key = KnownStructuredLogFields.CategoryField, Value = ViewModel.LogEntry.Scope.ScopeName } 52_contextAttributes.Add(new TelemetryPropertyViewModel { Name = "TraceId", Key = KnownStructuredLogFields.TraceIdField, Value = ViewModel.LogEntry.TraceId }); 56_contextAttributes.Add(new TelemetryPropertyViewModel { Name = "SpanId", Key = KnownStructuredLogFields.SpanIdField, Value = ViewModel.LogEntry.SpanId }); 60_contextAttributes.Add(new TelemetryPropertyViewModel { Name = "ParentId", Key = KnownStructuredLogFields.ParentIdField, Value = ViewModel.LogEntry.ParentId }); 68new TelemetryPropertyViewModel { Name = "Level", Key = KnownStructuredLogFields.LevelField, Value = ViewModel.LogEntry.Severity.ToString() }, 69new TelemetryPropertyViewModel { Name = "Message", Key = KnownStructuredLogFields.MessageField, Value = ViewModel.LogEntry.Message },
Components\Pages\TraceDetail.razor.cs (1)
294.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)
28private IQueryable<TelemetryPropertyViewModel> FilteredItems => 31private IQueryable<TelemetryPropertyViewModel> FilteredContextItems => 34private IQueryable<TelemetryPropertyViewModel> FilteredResourceItems => 52private List<TelemetryPropertyViewModel> _contextAttributes = null!; 56private bool ApplyFilter(TelemetryPropertyViewModel vm)
Components\Controls\StructuredLogDetails.razor.cs (11)
18internal IQueryable<TelemetryPropertyViewModel> FilteredItems => 21internal IQueryable<TelemetryPropertyViewModel> FilteredExceptionItems => 24internal IQueryable<TelemetryPropertyViewModel> FilteredContextItems => 27internal IQueryable<TelemetryPropertyViewModel> FilteredResourceItems => 33private List<TelemetryPropertyViewModel> _logEntryAttributes = null!; 34private List<TelemetryPropertyViewModel> _contextAttributes = null!; 35private List<TelemetryPropertyViewModel> _exceptionAttributes = null!; 74private static void MoveAttributes(List<TelemetryPropertyViewModel> source, List<TelemetryPropertyViewModel> desintation, Func<TelemetryPropertyViewModel, bool> predicate) 87private bool ApplyFilter(TelemetryPropertyViewModel vm)
Aspire.Dashboard.Components.Tests (1)
Controls\StructuredLogDetailsTests.cs (1)
67static void AssertUniqueKeys(IEnumerable<TelemetryPropertyViewModel> properties)